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:
parent
e5617adfdf
commit
e1088215f5
1 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue