From 85be69b5ce15db0d9df0f0ca191be43c2ea6bc31 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 20 Sep 2018 22:09:43 +0200 Subject: [PATCH] Set permissions during the restore script --- scripts/restore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/restore b/scripts/restore index bae61cd..56e3f83 100644 --- a/scripts/restore +++ b/scripts/restore @@ -125,6 +125,13 @@ ynh_use_nodejs npm cache clean npm install forever -g >> $install_log 2>&1 +#================================================= +# SECURING FILES AND DIRECTORIES +#================================================= + +# Set files ownership to etherpad +chown -R $app: $final_path + #================================================= # ENABLE SERVICE IN ADMIN PANEL #=================================================