Fix argument dashes

This commit is contained in:
Jan Eitzinger 2023-06-27 14:30:09 +02:00
parent eb626db9c2
commit 34050c8ce0
2 changed files with 4 additions and 4 deletions

View File

@ -65,7 +65,7 @@ func checkDBVersion(backend string, db *sql.DB) error {
}
if v < Version {
return fmt.Errorf("unsupported database version %d, need %d.\nPlease backup your database file and run cc-backend --migrate-db", v, Version)
return fmt.Errorf("unsupported database version %d, need %d.\nPlease backup your database file and run cc-backend -migrate-db", v, Version)
}
if v > Version {

View File

@ -2,7 +2,7 @@
if [ -d './var' ]; then
echo 'Directory ./var already exists! Skipping initialization.'
./cc-backend --server --dev
./cc-backend -server -dev
else
make
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-demo.tar
@ -12,6 +12,6 @@ else
cp ./configs/env-template.txt .env
cp ./configs/config-demo.json config.json
./cc-backend --migrate-db
./cc-backend --server --dev --init-db --add-user demo:admin:demo
./cc-backend -migrate-db
./cc-backend -server -dev -init-db -add-user demo:admin:demo
fi