mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
Testing (#38)
* version 3.2.0 * fix nodejs_version variable in upgrade script (#31) (#32) * correct a sile config
This commit is contained in:
parent
bb0718550a
commit
c4863eb582
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue