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:
parent
9ae6b574e7
commit
e25dddecb6
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue