1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

move datadir owning

This commit is contained in:
yalh76 2019-04-03 02:49:10 +02:00
parent 15f8664900
commit 0e170b49c4

View file

@ -144,6 +144,10 @@ datadir="/home/yunohost.app/${app}/storage"
# Create app folders # Create app folders
mkdir -p "$datadir" mkdir -p "$datadir"
# Give permission to the datadir
chown -R "$app":"$app" "$datadir"
#================================================= #=================================================
# BUILD YARN DEPENDENCIES # BUILD YARN DEPENDENCIES
#================================================= #=================================================
@ -221,8 +225,6 @@ ynh_send_readme_to_admin "$message"
# Set permissions to app files # Set permissions to app files
chown -R "$app":"$app" $final_path chown -R "$app":"$app" $final_path
# Give permission to the datadir
chown -R "$app":"$app" "$datadir"
#================================================= #=================================================
# SETUP LOGROTATE # SETUP LOGROTATE