mirror of
https://github.com/YunoHost-Apps/pluxml_ynh.git
synced 2024-09-03 20:16:02 +02:00
[enh] source helpers.
This commit is contained in:
parent
9e12c32890
commit
42d33ffc60
5 changed files with 15 additions and 0 deletions
|
@ -7,6 +7,9 @@ app=pluxml
|
|||
app_path=/var/www/$app
|
||||
save_path=$1
|
||||
|
||||
# Source YunoHost helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
sudo mkdir -p $save_path
|
||||
sudo cp -R $app_path/data $save_path/
|
||||
sudo cp $app_path/config.php $save_path/
|
||||
|
|
|
@ -13,6 +13,9 @@ password=$4
|
|||
is_public=$5
|
||||
default_lang=$6
|
||||
|
||||
# Source YunoHost helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
# Remove trailing slash
|
||||
[ "$path" != "/" ] && path=${path%/}
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
app=pluxml
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
|
||||
# Source YunoHost helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
# Remove sources
|
||||
sudo rm -rf /var/www/$app
|
||||
|
||||
|
|
|
@ -7,6 +7,9 @@ app=pluxml
|
|||
app_path=/var/www/$app
|
||||
save_path=$1
|
||||
|
||||
# Source YunoHost helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
sudo cp $save_path/config.php $app_path/
|
||||
sudo rm -rf $app_path/data
|
||||
sudo cp -R $save_path/data $app_path/
|
||||
|
|
|
@ -11,6 +11,9 @@ path=$(sudo yunohost app setting $app path)
|
|||
admin=$(sudo yunohost app setting $app admin)
|
||||
is_public=$(sudo yunohost app setting $app is_public)
|
||||
|
||||
# Source YunoHost helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
# Remove trailing "/" for next commands
|
||||
path=${path%/}
|
||||
|
||||
|
|
Loading…
Reference in a new issue