From 22907250ae915a028d07f0847617eaad128c10db Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 6 Oct 2022 21:34:18 -0400 Subject: [PATCH] Fixed config directory creation on fresh install --- global.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/global.sh b/global.sh index 7b957a46..402d7601 100755 --- a/global.sh +++ b/global.sh @@ -67,7 +67,10 @@ conf_write() { # If there is no config file I initalize the file with the the default values if [ ! -f "$rd_conf" ] 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 "Initializing" touch $rd_conf