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

[upg] v0.1.0-beta.10 and [fix] install (#121)

* [upg] v0.1.0-beta.10 (#120)

* [fix] do not set flarum/core version

* [fix] secure remove tmp and log folders
This commit is contained in:
tituspijean 2019-09-22 15:35:35 +02:00 committed by GitHub
parent 1c7db753d0
commit bd73569c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 9 deletions

View file

@ -7,9 +7,9 @@ pkg_dependencies="php7.3-curl php7.3-dom php7.3-gd php7.3-json php7.3-mbstring p
# Version numbers
php_version="7.3"
project_version="0.1.0-beta.9"
core_version="0.1.0-beta.9"
ssowat_version="0.1.0-beta.9-1"
project_version="0.1.0-beta.10"
core_version="0.1.0-beta.10"
ssowat_version="0.1.0-beta.10-1"
#=================================================
# PERSONAL HELPERS

View file

@ -130,8 +130,6 @@ ynh_script_progression --message="Composer is installing Flarum and its dependen
# First, create the project with core and all basic extensions
ynh_composer_exec $app $php_version $final_path "create-project flarum/flarum=$project_version $tmp --stability=beta --ansi -d $tmp"
# Let's fix the core version by explicitely requiring it
ynh_composer_exec $app $php_version $final_path "require flarum/core:$core_version -n --ansi -d $tmp"
# Copy Flarum to working directory and clean temp directory
cp -Rf $tmp/* $final_path

View file

@ -82,11 +82,11 @@ ynh_remove_logrotate
#=================================================
# Remove a temp directory securely
ynh_secure_remove --file="/tmp/$app/"
ynh_secure_remove --file="/tmp/$app"
ynh_secure_remove --file="/tmp/${app}backup"
# Remove the log files
ynh_secure_remove --file="/var/log/$app/"
ynh_secure_remove --file="/var/log/$app"
#=================================================
# GENERIC FINALIZATION

View file

@ -201,8 +201,6 @@ if [[ $(dpkg --compare-versions $old_project_version lt "0.1.0-beta.8" && echo t
# First, create the project with core and all basic extensions
ynh_composer_exec $app $php_version $final_path "create-project flarum/flarum=$project_version $tmp --stability=beta --ansi -d $tmp"
# Let's fix the core version by explicitely requiring it
ynh_composer_exec $app $php_version $final_path "require flarum/core:$core_version -n --ansi -d $tmp"
# Copy Flarum to working directory
cp -Rf $tmp/* $final_path