1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00

Update install

This commit is contained in:
frju365 2019-10-01 23:53:30 +02:00 committed by GitHub
parent e5617adfdf
commit e1088215f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,20 +124,18 @@ chown admin: -R $install_log
#================================================= #=================================================
# Copy default configuration file # Copy default configuration file
mv "../conf/config.js" "$final_path/config.js" mv "../conf/config.js" "$final_path/config/config.js"
ynh_replace_string "_domain = 'http://localhost:3000/'" "_domain = 'https://$domain$path_url'" "$final_path/config.js"
# Set service port # Set service port
ynh_replace_string "__PORT__" "$port" "$final_path/config.js" ynh_replace_string "__PORT__" "$port" "$final_path/config/config.js"
ynh_replace_string "__PORT__" "$porti" "$final_path/config.js" ynh_replace_string "__PORTI__" "$porti" "$final_path/config/config.js"
# Tune CSP to allow for YunoHost tile # Tune CSP to allow for YunoHost tile
#ynh_replace_string "\"script-src 'self'\"" "\"script-src 'self' 'unsafe-eval'\"" "$final_path/config.js" #ynh_replace_string "\"script-src 'self'\"" "\"script-src 'self' 'unsafe-eval'\"" "$final_path/config.js"
# Remove donate button # 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 # Disable analytics unsolicited communications
ynh_replace_string "__ADMIN_EMAIL_" "$admin_email" "$final_path/config.js" ynh_replace_string "__ADMIN_EMAIL_" "$admin_email" "$final_path/config/config.js"
cp $final_path/config.js $final_path/config.example
# Store file checksum to detected user modifications on upgrade # 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 # INSTALL CRYPTPAD