Update path of configs

This commit is contained in:
0d0acre 2024-09-21 00:22:49 +02:00
parent 2797027801
commit 831b00cbb1
3 changed files with 9 additions and 9 deletions

View file

@ -5,9 +5,9 @@
#Imposta credenziali
DB_USER=$(jq -r '.db.user' ../config/default.json)
DB_PASS=$(jq -r '.db.password' ../config/default.json)
DB_NAME=$(jq -r '.db.database' ../config/default.json)
TABLE_NAME=$(jq -r '.db.table' ../config/default.json)
DB_PASS=$(jq -r '.db.password' ../server/config/default.json)
DB_NAME=$(jq -r '.db.database' ../server/config/default.json)
TABLE_NAME=$(jq -r '.db.table' ../server/config/default.json)
# Controlla se DB_USER è "myusername"
if [ "$DB_USER" == "myusername" ]; then

View file

@ -4,8 +4,8 @@
# nano /var/www/html/leaflet/ruscomap/delete_rusco.sh
# Imposta credenziali
DB_USER=$(jq -r '.db.user' ../config/default.json)
DB_PASS=$(jq -r '.db.password' ../config/default.json)
DB_USER=$(jq -r '.db.user' ../server/config/default.json)
DB_PASS=$(jq -r '.db.password' ../server/config/default.json)
# Controlla se DB_USER è "myusername"
if [ "$DB_USER" == "myusername" ]; then

View file

@ -4,10 +4,10 @@
# nano /var/www/html/leaflet/ruscomap/pulisci_manualmente_vecchio_rusco.sh
# Imposta credenziali
DB_USER=$(jq -r '.db.user' ../config/default.json)
DB_PASS=$(jq -r '.db.password' ../config/default.json)
DB_NAME=$(jq -r '.db.database' ../config/default.json)
TABLE_NAME=$(jq -r '.db.table' ../config/default.json)
DB_USER=$(jq -r '.db.user' ../server/config/default.json)
DB_PASS=$(jq -r '.db.password' ../server/config/default.json)
DB_NAME=$(jq -r '.db.database' ../server/config/default.json)
TABLE_NAME=$(jq -r '.db.table' ../server/config/default.json)
# Controlla se DB_USER è "myusername"
if [ "$DB_USER" == "myusername" ]; then