diff --git a/scripts/install b/scripts/install index 341ec90..1350852 100644 --- a/scripts/install +++ b/scripts/install @@ -124,20 +124,18 @@ chown admin: -R $install_log #================================================= # Copy default configuration file -mv "../conf/config.js" "$final_path/config.js" -ynh_replace_string "_domain = 'http://localhost:3000/'" "_domain = 'https://$domain$path_url'" "$final_path/config.js" +mv "../conf/config.js" "$final_path/config/config.js" # Set service port -ynh_replace_string "__PORT__" "$port" "$final_path/config.js" -ynh_replace_string "__PORT__" "$porti" "$final_path/config.js" +ynh_replace_string "__PORT__" "$port" "$final_path/config/config.js" +ynh_replace_string "__PORTI__" "$porti" "$final_path/config/config.js" # Tune CSP to allow for YunoHost tile #ynh_replace_string "\"script-src 'self'\"" "\"script-src 'self' 'unsafe-eval'\"" "$final_path/config.js" # Remove donate button -ynh_replace_string "removeDonateButton: false" "removeDonateButton: true" "$final_path/config.js" +ynh_replace_string "removeDonateButton: false" "removeDonateButton: true" "$final_path/config/config.js" # Disable analytics unsolicited communications -ynh_replace_string "__ADMIN_EMAIL_" "$admin_email" "$final_path/config.js" -cp $final_path/config.js $final_path/config.example +ynh_replace_string "__ADMIN_EMAIL_" "$admin_email" "$final_path/config/config.js" # Store file checksum to detected user modifications on upgrade -ynh_store_file_checksum "$final_path/config.js" +ynh_store_file_checksum "$final_path/config/config.js" #================================================= # INSTALL CRYPTPAD