remove all blank file creation
This commit is contained in:
parent
97eb4fa2ef
commit
f3eabec1ba
@ -1,15 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Test Configuration
|
#Test Configuration
|
||||||
|
|
||||||
if test -f "/config/credentials.json"; then echo "Creds Exist"; else cp /root/NadekoBot/credentials_example.json /config/credentials.json; fi
|
if test -f "/config/credentials.json"; then echo "Creds 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
|
|
||||||
|
|
||||||
|
|
||||||
#Remove Built in
|
#Remove Built in
|
||||||
rm /root/NadekoBot/credentials.json
|
rm /root/NadekoBot/credentials.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
|
||||||
sudo ln -ds /config/data /root/nadekobot/data
|
|
Loading…
Reference in New Issue
Block a user