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

Merge pull request #27 from YunoHost-Apps/fix_install

make sure installation works
This commit is contained in:
Sebastian Gumprich 2021-08-26 09:24:15 +02:00 committed by GitHub
commit c60ff0c274
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
#=================================================