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

Fix path owner

This commit is contained in:
yalh76 2019-02-02 03:40:38 +01:00
parent 097c138c71
commit 3b4603a338
2 changed files with 4 additions and 0 deletions

View file

@ -299,6 +299,8 @@ chown -R "$app":"$app" "/var/log/$app"
# MAKE SETUP
#=================================================
chown -R "$app":"$app" "$final_path"
pushd $final_path
sudo -u $app ./writefreely --init-db
sudo -u $app ./writefreely --gen-keys

View file

@ -139,6 +139,8 @@ ynh_system_user_create "$app" "$final_path"
# MAKE UPGRADE
#=================================================
chown -R "$app":"$app" "$final_path"
pushd $final_path
sudo -u $app ./writefreely --migrate
popd