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

* fix nodejs_version variable in upgrade script (#31) (#32)

* correct a sile config
This commit is contained in:
frju365 2019-10-02 19:59:12 +02:00 committed by GitHub
parent bb0718550a
commit c4863eb582
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,9 +125,11 @@ chown admin: -R $install_log
# Copy default configuration file # Copy default configuration file
mv "../conf/config.js" "$final_path/config/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/config.js"
# Set service port # Set service port
ynh_replace_string "__PORT__" "$port" "$final_path/config/config.js" ynh_replace_string "__PORT__" "$port" "$final_path/config/config.js"
ynh_replace_string "__PORTI__" "$porti" "$final_path/config/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
@ -148,6 +150,17 @@ npm install -g bower --allow-root
bower install --allow-root bower install --allow-root
popd popd
#=================================================
# INSTALL CRYPTPAD
#=================================================
script_dir="$PWD"
pushd "$final_path"
npm install --allow-root
npm install -g bower --allow-root
bower install --allow-root
popd
#================================================= #=================================================
# Set some permissions # Set some permissions
#================================================= #=================================================