🥂 Initial commit

This commit is contained in:
Lucas Colombo
2023-07-01 16:19:40 -03:00
commit 65a7943588
488 changed files with 57991 additions and 0 deletions

19
tools/restart.js Normal file
View File

@@ -0,0 +1,19 @@
import { getArg } from './utils/funcs.js';
import { restartService } from './tasks/restart-service.js';
import { Logger } from './utils/logger.js';
const logger = new Logger('restart', 'info', 'brightMagenta');
const serviceName = getArg('--service', 'gitea');
function exit(err) {
if (err) {
console.error(err);
} else {
console.log('');
logger.info('Build completed successfully');
}
process.exit(err ? 1 : 0);
}
restartService(serviceName).then(exit).catch(exit);