mirror of
https://github.com/YunoHost-Apps/galene_ynh.git
synced 2024-09-03 18:36:31 +02:00
Update upgrade
This commit is contained in:
parent
2f2ab4a3d9
commit
ac1c6c0595
1 changed files with 8 additions and 11 deletions
|
@ -126,18 +126,15 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
ynh_script_progression --message="Upgrading source files..." --weight=2
|
||||||
then
|
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=2
|
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="$final_path/build"
|
ynh_setup_source --dest_dir="$final_path/build"
|
||||||
ynh_setup_source --dest_dir="$final_path/build_ldap" --source_id="ldap"
|
ynh_setup_source --dest_dir="$final_path/build_ldap" --source_id="ldap"
|
||||||
mkdir -p "$final_path/live/data"
|
mkdir -p "$final_path/live/data"
|
||||||
mkdir -p "$final_path/live_ldap/data"
|
mkdir -p "$final_path/live_ldap/data"
|
||||||
ynh_secure_remove --file="$final_path/live/static/"
|
ynh_secure_remove --file="$final_path/live/static/"
|
||||||
cp -r "$final_path/build/static/" "$final_path/live/"
|
cp -r "$final_path/build/static/" "$final_path/live/"
|
||||||
ynh_replace_string --match_string="<div class=\"galene-header\">Galène</div>" --replace_string="<div class=\"galene-header\" onclick=\"location.href=window.location.origin\" style=\"cursor:pointer\">Galène</div>" --target_file="$final_path/live/static/galene.html"
|
ynh_replace_string --match_string="<div class=\"galene-header\">Galène</div>" --replace_string="<div class=\"galene-header\" onclick=\"location.href=window.location.origin\" style=\"cursor:pointer\">Galène</div>" --target_file="$final_path/live/static/galene.html"
|
||||||
fi
|
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
|
|
Loading…
Add table
Reference in a new issue