Remove useless user rights

This commit is contained in:
Jean-Baptiste Holcroft
2017-11-19 13:46:34 +01:00
parent 333e0973e6
commit 23645f9f33
7 changed files with 13 additions and 17 deletions

View File

@@ -126,6 +126,7 @@ ynh_app_setting_set "$app" secret "$secret"
# Copy Files
cp ../conf/syncserver.ini "$final_path/syncserver.ini"
ynh_replace_string "__APP__" "$app" "$final_path/syncserver.ini"
ynh_replace_string "__DOMAIN__" "$domain" "$final_path/syncserver.ini"
ynh_replace_string "__PATH__" "$path_url" "$final_path/syncserver.ini"
ynh_replace_string "__NAME__" "$app" "$final_path/syncserver.ini"
@@ -160,9 +161,7 @@ ynh_replace_string "__DB_NAME__" "$db_name" "$final_path/syncserver.ini"
# SECURE FILES AND DIRECTORIES
#=================================================
chown "$app":"$app" -R "$final_path"
find "$final_path"/ -type d -exec chmod 2755 {} \;
find "$final_path"/ -type f -exec chmod g+r,o+r {} \;
# no need, keep the default root:root
#=================================================
# SETUP LOGROTATE

View File

@@ -74,9 +74,7 @@ ynh_system_user_create "$app"
# RESTORE USER RIGHTS
#=================================================
chown "$app":"$app" -R "$final_path"
find "$final_path"/ -type d -exec chmod 2755 {} \;
find "$final_path"/ -type f -exec chmod g+r,o+r {} \;
# no need, keep the default root:root
#=================================================
# SPECIFIC RESTORATION

View File

@@ -127,6 +127,7 @@ ynh_system_user_create "$app"
# Copy Files
cp ../conf/syncserver.ini "$final_path/syncserver.ini"
ynh_replace_string "__APP__" "$app" "$final_path/syncserver.ini"
ynh_replace_string "__DOMAIN__" "$domain" "$final_path/syncserver.ini"
ynh_replace_string "__PATH__" "$path_url" "$final_path/syncserver.ini"
ynh_replace_string "__NAME__" "$app" "$final_path/syncserver.ini"
@@ -143,9 +144,7 @@ ynh_replace_string "__DB_NAME__" "$db_name" "$final_path/syncserver.ini"
# SECURE FILES AND DIRECTORIES
#=================================================
chown "$app":"$app" -R "$final_path"
find "$final_path"/ -type d -exec chmod 2755 {} \;
find "$final_path"/ -type f -exec chmod g+r,o+r {} \;
# no need, keep the default root:root
#=================================================
# SETUP LOGROTATE