mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
fix upgrade
This commit is contained in:
parent
2b81bf7731
commit
4e130d43e1
1 changed files with 26 additions and 23 deletions
|
@ -158,6 +158,8 @@ shopt -s extglob
|
||||||
|
|
||||||
datapath=/home/yunohost.app/$app
|
datapath=/home/yunohost.app/$app
|
||||||
|
|
||||||
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
|
then
|
||||||
# Install files and set permissions
|
# Install files and set permissions
|
||||||
cp -a $tmpdir/!(upload|_data|galleries) $final_path
|
cp -a $tmpdir/!(upload|_data|galleries) $final_path
|
||||||
|
|
||||||
|
@ -177,12 +179,13 @@ if [ ! -h $final_path/galleries ] ; then
|
||||||
ln -sd $datapath/galleries $final_path/galleries
|
ln -sd $datapath/galleries $final_path/galleries
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ynh_secure_remove --file="$tmpdir"
|
||||||
|
fi
|
||||||
|
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
chown -R $app: $datapath
|
chown -R $app: $datapath
|
||||||
chmod 755 -R $final_path/_data
|
chmod 755 -R $final_path/_data
|
||||||
|
|
||||||
ynh_secure_remove --file="$tmpdir"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE APPLICATION WITH CURL
|
# UPGRADE APPLICATION WITH CURL
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue