1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invoiceninja_ynh.git synced 2024-09-03 19:26:22 +02:00

make sure installation works

before this fix, the installation could not complete because
invoiceninja checks if an env-file exists. if it does, it complains
and setup wont finish. this fix comments the code for this check.
This commit is contained in:
Sebastian Gumprich 2021-08-22 19:23:23 +02:00
parent 77521faae6
commit dc4a673b37

View file

@ -123,7 +123,7 @@ ynh_script_progression --message="Adding a configuration file..."
ynh_add_config --template="../conf/.env" --destination="$final_path/.env"
chmod 400 "$final_path/.env"
chmod 600 "$final_path/.env"
chown $app:$app "$final_path/.env"
#=================================================
@ -135,6 +135,11 @@ pushd "$final_path"
# Run the database migrations and initially fill the db
php$phpversion artisan migrate --force
php$phpversion artisan db:seed --force
# thanks to cloudron for this!
# This comments the check at https://github.com/invoiceninja/invoiceninja/blob/cadd1a3b44aed3dc5bd28d623efd4bb51c6d895a/app/Http/Controllers/AppController.php#L47
# We pre-setup various parts already thus the .env file has to exist
sed -e "s/^.*app is already configured.*/ /" -i app/Http/Controllers/AppController.php
popd
#=================================================