2016-05-05 14:42:47 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#Test Configuration
|
|
|
|
|
|
|
|
cred="/config/credentials.json"
|
|
|
|
if [ -f "$cred" ] ; then echo "Credentials exist" ; else cp /root/NadekoBot/credentials_example.json /config/credentials.json ; fi
|
|
|
|
|
|
|
|
sql="/config/nadekobot.sqlite"
|
|
|
|
if [ -f "$sql" ] ; then echo "SQLite DB exists" ; else echo "" > /config/nadekobot.sqlite ;fi
|
|
|
|
|
|
|
|
#Remove Built in
|
2016-05-06 07:07:43 +00:00
|
|
|
#rm /root/NadekoBot/credentials.json
|
|
|
|
#rm /root/NadekoBot/data/nadekobot.sqlite
|
2016-05-05 14:42:47 +00:00
|
|
|
|
|
|
|
#Adding Config file sym links
|
|
|
|
ln -s /config/credentials.json /root/NadekoBot/credentials.json
|
|
|
|
ln -s /config/nadekobot.sqlite /root/NadekoBot/data/nadekobot.sqlite
|