1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shellinabox_ynh.git synced 2024-09-03 20:26:12 +02:00

[enh] Use latest backup specification.

This commit is contained in:
opi 2016-05-07 02:00:48 +02:00
parent 7a3a13cda9
commit 36d5a3905a
3 changed files with 12 additions and 5 deletions

View file

@ -2,7 +2,10 @@
"name": "Shell In A Box", "name": "Shell In A Box",
"id": "shellinabox", "id": "shellinabox",
"packaging_format": 1, "packaging_format": 1,
"description": { "requirements": {
"yunohost": ">> 2.3.15"
},
"description": {
"en": "Web based AJAX terminal emulator", "en": "Web based AJAX terminal emulator",
"fr": "Émulateur de terminal web" "fr": "Émulateur de terminal web"
}, },

View file

@ -3,8 +3,11 @@
# causes the shell to exit if any subcommand or pipeline returns a non-zero status # causes the shell to exit if any subcommand or pipeline returns a non-zero status
set -e set -e
# Retrieve arguments # Source YNH helpers
app="shellinabox" . /usr/share/yunohost/helpers
app=${!#}
domain=$(sudo yunohost app setting $app domain) domain=$(sudo yunohost app setting $app domain)
# Backup directory location for the app from where the script is executed and # Backup directory location for the app from where the script is executed and
@ -13,4 +16,4 @@ backup_dir=$YNH_APP_BACKUP_DIR
# Copy the conf files # Copy the conf files
sudo mkdir -p ./conf sudo mkdir -p ./conf
sudo cp -a "/etc/nginx/conf.d/${domain}.d/${app}.conf" ./conf/nginx.conf ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" ./conf/nginx.conf

View file

@ -4,7 +4,8 @@
set -e set -e
# Retrieve arguments # Retrieve arguments
app="shellinabox" app=${!#}
domain=$(sudo yunohost app setting $app domain) domain=$(sudo yunohost app setting $app domain)
path=$(sudo yunohost app setting $app path) path=$(sudo yunohost app setting $app path)