mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Update upgrade
This commit is contained in:
parent
530ba44a86
commit
41157faaba
1 changed files with 1 additions and 2 deletions
|
@ -103,7 +103,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
|
ynh_script_progression --message="Upgrading source files..." --weight=3
|
||||||
# Check if the repo can be updated with git
|
# Check if the repo can be updated with git
|
||||||
if [ `cd $final_path && git rev-parse --is-inside-work-tree &> /dev/null` ];
|
if [ `cd $final_path && git rev-parse --is-inside-work-tree &> /dev/null` ];
|
||||||
then
|
then
|
||||||
|
@ -125,7 +125,6 @@ else
|
||||||
|
|
||||||
# Create a temporary directory and backup smarty3 folder
|
# Create a temporary directory and backup smarty3 folder
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=3
|
|
||||||
cp -a "$final_path/view/smarty3" "$tmpdir/smarty3"
|
cp -a "$final_path/view/smarty3" "$tmpdir/smarty3"
|
||||||
|
|
||||||
# Remove the app directory securely
|
# Remove the app directory securely
|
||||||
|
|
Loading…
Reference in a new issue