mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Fix
This commit is contained in:
parent
fe92a41728
commit
ec48a2fbdb
4 changed files with 11 additions and 14 deletions
|
@ -3,10 +3,10 @@
|
|||
|
||||
;; Test complet
|
||||
; Manifest
|
||||
domain="domain.tld" (DOMAIN)
|
||||
path="/path" (PATH)
|
||||
admin="john" (USER)
|
||||
is_public=1 (PUBLIC|public=1|private=0)
|
||||
domain="domain.tld"
|
||||
path="/path"
|
||||
admin="john"
|
||||
is_public=1
|
||||
password="phrasedepasse"
|
||||
language="fr"
|
||||
port=9537 (PORT)
|
||||
|
|
|
@ -9,6 +9,8 @@ pkg_dependencies="postgresql postgresql-contrib apt-transport-https"
|
|||
|
||||
YNH_PHP_VERSION="7.3"
|
||||
|
||||
YNH_COMPOSER_VERSION="2.0.13"
|
||||
|
||||
extra_php_dependencies="php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-pgsql php${YNH_PHP_VERSION}-xml"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -132,11 +132,7 @@ ynh_store_file_checksum --file="$final_path/config/db.inc.php"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Configuring Composer..." --weight=1
|
||||
|
||||
pushd $final_path
|
||||
export COMPOSER_HOME=$final_path
|
||||
ynh_exec_warn_less curl -sS https://getcomposer.org/installer | php${phpversion} -- --version="1.10.16" --install-dir="$final_path" \
|
||||
&& php${phpversion} composer.phar install --no-interaction --quiet
|
||||
popd
|
||||
ynh_install_composer
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
@ -146,13 +142,12 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=12
|
|||
ynh_add_systemd_config
|
||||
|
||||
#=================================================
|
||||
# Set-up database and configuration
|
||||
# SET-UP DATABASE AND CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring database..." --weight=1
|
||||
|
||||
cache_dir="/home/yunohost.app/$app"
|
||||
ynh_script_progression --message="Configuring Movim..." --weight=1
|
||||
|
||||
# Create cachedir folder
|
||||
cache_dir="/home/yunohost.app/$app"
|
||||
mkdir -p $cache_dir
|
||||
chown -R $app $cache_dir
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ yunohost service add $app --description="Responsive web-based XMPP client" --log
|
|||
ynh_script_progression --message="Installing Composer..." --weight=1
|
||||
|
||||
pushd "$final_path"
|
||||
ynh_exec_warn_less curl -sS https://getcomposer.org/installer | php$phpversion -- --version="1.10.16" --install-dir="$final_path" \
|
||||
ynh_exec_warn_less ynh_install_composer \
|
||||
&& php$phpversion composer.phar config --global discard-changes true --quiet \
|
||||
&& php$phpversion composer.phar update --no-interaction --quiet \
|
||||
&& php$phpversion composer.phar movim:migrate --quiet
|
||||
|
|
Loading…
Add table
Reference in a new issue