mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
Update upgrade
This commit is contained in:
parent
b2d8f0472a
commit
2f31a29b03
1 changed files with 7 additions and 10 deletions
|
@ -94,7 +94,7 @@ then
|
|||
ynh_script_progression --message="Upgrading source files..." --weight=4
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/public/dist/user.css $final_path/.env"
|
||||
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/public/dist/user.css $final_path/.env"
|
||||
fi
|
||||
|
||||
chmod 750 "$final_path"
|
||||
|
@ -137,20 +137,17 @@ ynh_install_composer --install_args="--ignore-platform-reqs"
|
|||
# ynh_script_progression --message="Setting Lychee config..."
|
||||
|
||||
# Setup application config
|
||||
ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"
|
||||
#ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"
|
||||
|
||||
#=================================================
|
||||
# INSTALL AND INITIALIZE COMPOSER
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading Lychee source files..." --weight=4
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading Lychee source files..." --weight=4
|
||||
pushd $final_path
|
||||
#php$phpversion artisan key:generate -n --force
|
||||
php$phpversion artisan migrate -n #--force
|
||||
popd
|
||||
fi
|
||||
pushd $final_path
|
||||
#php$phpversion artisan key:generate -n --force
|
||||
php$phpversion artisan migrate -n #--force
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# SECURE FILES AND DIRECTORIES
|
||||
|
|
Loading…
Add table
Reference in a new issue