1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-11-24 08:42:24 +02:00

fixing config-only check error

This commit is contained in:
Patrik J. Braun 2019-12-12 15:31:50 +01:00
parent 2757af6bf0
commit 506dd799f5
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
web: node ./src/backend/index.js --Client-authenticationRequired=false --Client-Sharing-enabled=false
web: npm start -- --Client-authenticationRequired=false --Client-Sharing-enabled=false

View File

@ -32,7 +32,7 @@ export class ConfigClass extends PrivateConfigDefaultsClass implements IPrivateC
['MYSQL_DATABASE', 'Server-Database-mysql-database']]);
this.removeComment();
if (process.argv.indexOf('--config-only')) {
if (process.argv.indexOf('--config-only') !== -1) {
console.log('started with \'--config-only\' flag. Saving config and exiting.');
process.exit();
}