no message
This commit is contained in:
parent
906f0cb954
commit
bf9e98592d
@ -1,16 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Test Configuration
|
#Test Configuration
|
||||||
|
|
||||||
cred="/config/credentials.json"
|
if test -f "/config/credentials.json"; then echo "Creds Exist"; else cp /root/NadekoBot/credentials_example.json /config/credentials.json; fi
|
||||||
if [ -f "$cred" ] ; then echo "Credentials exist" ; else cp /root/NadekoBot/credentials_example.json /config/credentials.json ; fi
|
if test -f "/config/nadekobot.sqlite"; then echo "SQlite Exist"; else echo "" > /config/nadekobot.sqlite; fi
|
||||||
|
if test -f "/config/config.json"; then echo "Config Exist"; else cp /root/NadekoBot/data/config_example.json /config/config.json; fi
|
||||||
|
|
||||||
sql="/config/nadekobot.sqlite"
|
|
||||||
if [ -f "$sql" ] ; then echo "SQLite DB exists" ; else echo "" > /config/nadekobot.sqlite ;fi
|
|
||||||
|
|
||||||
#Remove Built in
|
#Remove Built in
|
||||||
#rm /root/NadekoBot/credentials.json
|
rm /root/NadekoBot/credentials.json
|
||||||
#rm /root/NadekoBot/data/nadekobot.sqlite
|
rm /root/NadekoBot/data/nadekobot.sqlite
|
||||||
|
rm /root/NadekoBot/data/config_example.json
|
||||||
|
|
||||||
#Adding Config file sym links
|
#Adding Config file sym links
|
||||||
ln -s /config/credentials.json /root/NadekoBot/credentials.json
|
ln -s /config/credentials.json /root/NadekoBot/credentials.json
|
||||||
ln -s /config/nadekobot.sqlite /root/NadekoBot/data/nadekobot.sqlite
|
ln -s /config/nadekobot.sqlite /root/NadekoBot/data/nadekobot.sqlite
|
||||||
|
ln -s /config/config.json /root/NadekoBot/data/config.json
|
Loading…
Reference in New Issue
Block a user