1
0
Fork 0
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:
ericgaspar 2021-01-22 17:29:24 +01:00
parent 695f7fc9a3
commit 15d0dd7fe4
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -86,7 +86,7 @@ then
#ynh_setup_source --dest_dir="$final_path" #ynh_setup_source --dest_dir="$final_path"
pushd $final_path pushd $final_path
ynh_exec_warn_less ynh_exec_as $app bower update bower update
popd popd
fi fi
@ -121,17 +121,17 @@ ynh_system_user_create --username=$app
# CONFIGURE CONFIG.JS # 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 # # 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 --match_string="__PORT__" --replace_string="$port" --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="__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="__ADMIN_MAIL__" --replace_string="$admin_mail" --target_file="$final_path/config/config.js"
# 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/config.js" # ynh_store_file_checksum "$final_path/config/config.js"
# #================================================= # #=================================================
# # INSTALL CRYPTPAD # # INSTALL CRYPTPAD