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:
parent
77521faae6
commit
dc4a673b37
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue