mirror of
https://github.com/YunoHost-Apps/osada_ynh.git
synced 2024-09-03 19:46:30 +02:00
Update upgrade
This commit is contained in:
parent
6a8616c699
commit
681b9fdef6
1 changed files with 1 additions and 9 deletions
|
@ -78,14 +78,6 @@ ynh_script_progression --message="Upgrading source files..."
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
|
||||
# cp -a "$tmpdir/store" "${final_path}"
|
||||
# cp -a "$tmpdir/.htconfig.php" "${final_path}"
|
||||
# cp -a "$tmpdir/php.log" "${final_path}"
|
||||
# ynh_secure_remove "$tmpdir"
|
||||
# chmod -R 777 $final_path/store
|
||||
# mkdir $final_path/addon
|
||||
# ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons"
|
||||
|
||||
if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then
|
||||
pushd "$final_path"
|
||||
git pull
|
||||
|
@ -142,7 +134,7 @@ else
|
|||
cp -a "$tmpdir/.htconfig.php" "${final_path}"
|
||||
cp -a "$tmpdir/php.log" "${final_path}"
|
||||
ynh_secure_remove --file="$tmpdir"
|
||||
chmod -R 777 $final_path/store
|
||||
chmod -R 775 $final_path/store
|
||||
mkdir $final_path/addon
|
||||
ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue