mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
Update upgrade
This commit is contained in:
parent
d7542cb8f3
commit
eac5973bd3
1 changed files with 10 additions and 1 deletions
|
@ -61,7 +61,16 @@ if [ -z "$final_path" ]; then
|
|||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
fi
|
||||
|
||||
# If new datadir doesn't exist, create it
|
||||
# If datadir doesn't exist, create it
|
||||
if [ -z "$datadir" ]; then
|
||||
datadir=/home/yunohost.app/$app
|
||||
mkdir -p $datadir
|
||||
chmod 755 $datadir
|
||||
chown -R $app:www-data $datadir
|
||||
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||
fi
|
||||
|
||||
# If new "/home/yunohost.app/$app" doesn't exist, create it
|
||||
if [ -z "/home/yunohost.app/$app" ]; then
|
||||
datadir=/home/yunohost.app/$app
|
||||
mkdir -p $datadir
|
||||
|
|
Loading…
Add table
Reference in a new issue