1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
This commit is contained in:
ericgaspar 2020-09-17 10:38:35 +02:00
parent 96689d7a44
commit b877aae0be
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -182,16 +182,27 @@ ynh_add_systemd_config
#=================================================
# Set-up database and configuration
#=================================================
ynh_script_progression --message="Configuring database..." --weight=1
cache_dir="/home/$app"
# Create datadir folder
mkdir -p $cache_dir
chown -R $app $cache_dir
# chown -R $app /home/movim/.composer/cache/repo/https---repo.packagist.org/
# chown -R $app /home/movim/.composer/cache/files/
cd "$final_path"
ynh_exec_as $app php"${phpversion}" composer.phar $app:migrate
# (
# cd "$final_path"
# php mud.php db --set
# php mud.php config --loglevel=1 \
# --locale="$language" --timezone="$timezone" \
# --username="$admin" --password="$password"
# )
(
cd "$final_path"
php mud.php db --set
php mud.php config --loglevel=1 \
--locale="$language" --timezone="$timezone" \
--username="$admin" --password="$password"
)
#=================================================
# GENERIC FINALIZATION