mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
Update upgrade
This commit is contained in:
parent
baa019a69e
commit
50a6e75443
1 changed files with 22 additions and 22 deletions
|
@ -83,11 +83,11 @@ then
|
|||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
#ynh_setup_source --dest_dir="$final_path"
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
|
||||
pushd $final_path
|
||||
bower update --allow-root
|
||||
popd
|
||||
# pushd $final_path
|
||||
# bower update --allow-root
|
||||
# popd
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
@ -121,29 +121,29 @@ ynh_system_user_create --username=$app
|
|||
# CONFIGURE CONFIG.JS
|
||||
#=================================================
|
||||
|
||||
# ynh_backup_if_checksum_is_different "$final_path/config/config.js"
|
||||
ynh_backup_if_checksum_is_different "$final_path/config/config.js"
|
||||
|
||||
# # Copy default configuration file
|
||||
# mv "../conf/config.js" "$final_path/config/config.js"
|
||||
# Copy default configuration file
|
||||
mv "../conf/config.js" "$final_path/config/config.js"
|
||||
|
||||
# ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/config.js"
|
||||
# ynh_replace_string --match_string="__PORTI__" --replace_string="$porti" --target_file="$final_path/config/config.js"
|
||||
# ynh_replace_string --match_string="__ADMIN_MAIL__" --replace_string="$admin_mail" --target_file="$final_path/config/config.js"
|
||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/config.js"
|
||||
ynh_replace_string --match_string="__PORTI__" --replace_string="$porti" --target_file="$final_path/config/config.js"
|
||||
ynh_replace_string --match_string="__ADMIN_MAIL__" --replace_string="$admin_mail" --target_file="$final_path/config/config.js"
|
||||
|
||||
# # Store file checksum to detected user modifications on upgrade
|
||||
# ynh_store_file_checksum "$final_path/config/config.js"
|
||||
# Store file checksum to detected user modifications on upgrade
|
||||
ynh_store_file_checksum "$final_path/config/config.js"
|
||||
|
||||
# #=================================================
|
||||
# # INSTALL CRYPTPAD
|
||||
# #=================================================
|
||||
# ynh_script_progression --message="Building CryptPad... (this will take some time and resources!)" --weight=60
|
||||
#=================================================
|
||||
# INSTALL CRYPTPAD
|
||||
#=================================================
|
||||
ynh_script_progression --message="Building CryptPad... (this will take some time and resources!)" --weight=60
|
||||
|
||||
# pushd "$final_path" || ynh_die
|
||||
# ynh_use_nodejs
|
||||
# ynh_exec_warn_less yarn install --allow-root
|
||||
# yarn global add bower
|
||||
# bower install --allow-root
|
||||
# popd || ynh_die
|
||||
pushd "$final_path" || ynh_die
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less yarn install --allow-root
|
||||
yarn global add bower
|
||||
bower install --allow-root
|
||||
popd || ynh_die
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
Loading…
Reference in a new issue