1
0
Fork 0
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:
ericgaspar 2022-01-17 09:52:43 +01:00
parent d7542cb8f3
commit eac5973bd3
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -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