mirror of
https://github.com/YunoHost-Apps/jappix_ynh.git
synced 2024-09-03 19:26:19 +02:00
commit
53e44f51dc
5 changed files with 6 additions and 10 deletions
|
@ -15,7 +15,7 @@
|
|||
upgrade=1
|
||||
backup_restore=1
|
||||
multi_instance=0
|
||||
wrong_user=1
|
||||
wrong_user=0
|
||||
wrong_path=1
|
||||
incorrect_path=1
|
||||
corrupt_source=0
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
||||
set -e
|
||||
set -eu
|
||||
|
||||
# Source YNH helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
@ -9,7 +9,7 @@ source /usr/share/yunohost/helpers
|
|||
app="jappix"
|
||||
|
||||
# Retrieve app settings
|
||||
domain=$(sudo yunohost app setting "$app" domain)
|
||||
domain=$(ynh_app_setting_set "$app" domain)
|
||||
|
||||
# Save sources & data
|
||||
ynh_backup "/var/www/${app}" "sources"
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
set -eu
|
||||
source .fonctions
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -u
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
app="jappix"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -eu
|
||||
source .fonctions
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
|
@ -12,12 +12,6 @@ path=$(ynh_app_setting_get $app path)
|
|||
name=$(ynh_app_setting_get "$app" name)
|
||||
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
|
||||
name="${name:-YunoJappix}"
|
||||
language="${language:-en}"
|
||||
|
|
Loading…
Add table
Reference in a new issue