Zenika-Training / strigo-init-script-libs

Script snippets for Strigo init scripts
3 stars 1 forks source link

Add script for download materials and unzip it #35

Open patou opened 2 years ago

patou commented 2 years ago

For reduce the custom script in repository, its can be a good idea to have a script for download materials with config event and not write a custom script for it :

{
  "script": "download-material.sh",
  "env": {
    "google-drive-id": "xxxxx",
    "dest-dir": "/home/ubuntu/corrections",
    "compress": "zip",
  }
},
{
  "script": "download-material.sh",
  "env": {
    "google-drive-id": "yyyyyy",
    "dest-dir": "/home/ubuntu/exercices",
    "compress": "tar.gz",
  }
},
{
  "script": "download-material.sh",
  "env": {
    "google-drive-id": "zzzzz",
    "dest-file": "/home/ubuntu/slides.pdf",
  }
},
patou commented 2 years ago

I see the PR with a proposition like this #19