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

Merge pull request #5 from YunoHost-Apps/frju365-patch1

Frju365 patch1
This commit is contained in:
frju365 2017-03-07 20:28:04 +01:00 committed by GitHub
commit 53e44f51dc
5 changed files with 6 additions and 10 deletions

View file

@ -15,7 +15,7 @@
upgrade=1 upgrade=1
backup_restore=1 backup_restore=1
multi_instance=0 multi_instance=0
wrong_user=1 wrong_user=0
wrong_path=1 wrong_path=1
incorrect_path=1 incorrect_path=1
corrupt_source=0 corrupt_source=0

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# 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 -eu
# Source YNH helpers # Source YNH helpers
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
@ -9,7 +9,7 @@ source /usr/share/yunohost/helpers
app="jappix" app="jappix"
# Retrieve app settings # Retrieve app settings
domain=$(sudo yunohost app setting "$app" domain) domain=$(ynh_app_setting_set "$app" domain)
# Save sources & data # Save sources & data
ynh_backup "/var/www/${app}" "sources" ynh_backup "/var/www/${app}" "sources"

View file

@ -6,6 +6,7 @@
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
set -eu
source .fonctions source .fonctions
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers

View file

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
set -u
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
app="jappix" app="jappix"

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
set -e set -eu
source .fonctions source .fonctions
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
@ -12,12 +12,6 @@ path=$(ynh_app_setting_get $app path)
name=$(ynh_app_setting_get "$app" name) name=$(ynh_app_setting_get "$app" name)
language=$(ynh_app_setting_get "$app" language) language=$(ynh_app_setting_get "$app" language)
# Retrieve arguments
domain=$(ynh_app_setting_set "$app" domain)
path=$(ynh_app_setting_set "$app" path)
name=$(ynh_app_setting_set "$app" name)
language=$(ynh_app_setting_set "$app" language)
# Set default values # Set default values
name="${name:-YunoJappix}" name="${name:-YunoJappix}"
language="${language:-en}" language="${language:-en}"