1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/baikal_ynh.git synced 2024-09-03 18:16:11 +02:00
This commit is contained in:
ericgaspar 2022-04-03 12:59:55 +02:00
parent 1fefebb0ea
commit 4c9ac76444
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 11 additions and 14 deletions

View file

@ -67,12 +67,9 @@ echo "Handling asset at $asset_url"
# Here we base the source file name upon a unique keyword in the assets url (admin vs. update) # Here we base the source file name upon a unique keyword in the assets url (admin vs. update)
# Leave $src empty to ignore the asset # Leave $src empty to ignore the asset
case $asset_url in case $asset_url in
*"admin"*) *"baikal-"*".zip")
src="app" src="app"
;; ;;
*"update"*)
src="app-upgrade"
;;
*) *)
src="" src=""
;; ;;

View file

@ -43,12 +43,12 @@ ynh_script_progression --message="Changing the password..." --weight=1
bk_conf="${final_path}/config/baikal.yaml" bk_conf="${final_path}/config/baikal.yaml"
ynh_backup_if_checksum_is_different --file="${final_path}/config/baikal.yaml" ynh_backup_if_checksum_is_different --file="$final_path/config/baikal.yaml"
ynh_replace_string --match_string="${password_hash_old}" --replace_string="${password_hash}" --target_file="$bk_conf" ynh_replace_string --match_string="${password_hash_old}" --replace_string="${password_hash}" --target_file="$final_path/config/baikal.yaml"
ynh_app_setting_set --app=$app --key=password_hash --value=$password_hash ynh_app_setting_set --app=$app --key=password_hash --value=$password_hash
ynh_store_file_checksum --file="${final_path}/config/baikal.yaml" ynh_store_file_checksum --file="$final_path/config/baikal.yaml"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT