mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
Fixed config directory creation on fresh install
This commit is contained in:
parent
4da0e6f1fa
commit
22907250ae
|
@ -67,7 +67,10 @@ conf_write() {
|
||||||
# If there is no config file I initalize the file with the the default values
|
# If there is no config file I initalize the file with the the default values
|
||||||
if [ ! -f "$rd_conf" ]
|
if [ ! -f "$rd_conf" ]
|
||||||
then
|
then
|
||||||
|
if [ ! -d /var/config/retrodeck ] # Check if the RetroDECK config directory exists
|
||||||
|
then
|
||||||
|
mkdir -p /var/config/retrodeck
|
||||||
|
fi
|
||||||
echo "RetroDECK config file not found in $rd_conf"
|
echo "RetroDECK config file not found in $rd_conf"
|
||||||
echo "Initializing"
|
echo "Initializing"
|
||||||
touch $rd_conf
|
touch $rd_conf
|
||||||
|
|
Loading…
Reference in a new issue