1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

[enh] clean before install or upgrade

This commit is contained in:
tituspijean 2019-09-23 21:23:42 +02:00
parent 9ae6b574e7
commit e25dddecb6
2 changed files with 2 additions and 0 deletions

View file

@ -121,6 +121,7 @@ ynh_install_composer $php_version $final_path
# Prepare Flarum temp directory
tmp=/tmp/$app
ynh_secure_remove --file="$tmp"
mkdir -p $tmp
chown -R $app:www-data $tmp
chmod -R 0775 $tmp

View file

@ -168,6 +168,7 @@ if [[ $(dpkg --compare-versions $old_project_version lt "0.1.0-beta.8" && echo t
# Backing up the app directory
tmpbak="/tmp/${app}backup"
ynh_secure_remove --file="$tmpbak"
mkdir -p $tmpbak
cp -R $final_path/* $tmpbak