1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galene_ynh.git synced 2024-09-03 18:36:31 +02:00

Fix upgrade from 0.6.1~ynh1

This commit is contained in:
yalh76 2022-10-15 01:12:37 +02:00
parent 841c0f0808
commit 5e0fb37090
3 changed files with 10 additions and 6 deletions

View file

@ -18,6 +18,10 @@
upgrade=1 from_commit=aaae7fbe83ce001fabd40509882e765a5d8da2c1
# 0.6~ynh1
upgrade=1 from_commit=c5cc50f1b1f326080f4f657b7805f2c27c1c3f20
# 0.6.1~ynh1
upgrade=1 from_commit=f55a3d1990a0fb2fe17eb9b70aefb13337c2b623
# 0.6.1~ynh2
upgrade=1 from_commit=ed1506fa3eb56358fecb06d832c9684acbf682d9
backup_restore=1
multi_instance=0
port_already_use=0

View file

@ -6,7 +6,7 @@
"en": "Videoconferencing server that is easy to deploy",
"fr": "Serveur de visioconférence facile à déployer"
},
"version": "0.6.1~ynh2",
"version": "0.6.1~ynh3",
"url": "https://galene.org/",
"upstream": {
"license": "MIT",

View file

@ -132,13 +132,13 @@ then
ynh_setup_source --dest_dir="$final_path/build"
ynh_setup_source --dest_dir="$final_path/build_ldap" --source_id="ldap"
mkdir -p "$final_path/live/data"
mkdir -p "$final_path/live_ldap/data"
ynh_secure_remove --file="$final_path/live/static/"
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"
fi
mkdir -p "$final_path/live/data"
mkdir -p "$final_path/live_ldap/data"
ynh_secure_remove --file="$final_path/live/static/"
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"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"