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

fix data directory permission after upgrade

This commit is contained in:
Clément 2019-03-10 13:42:32 +01:00
parent cf2763b36e
commit 0559ed4ad7

View file

@ -134,12 +134,14 @@ ynh_add_systemd_config
# Set permissions on app files
chown -R root: $final_path
# If data directory doesn't exists, create it and setup permissions
# If data directory doesn't exists
if [ -z $final_path/data ]; then
mkdir $final_path/data
chown -R $app $final_path/data
fi
# check data directory permission
chown -R $app: $final_path/data
#=================================================
# SETUP SSOWAT
#=================================================