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