aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsboconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/sboconfig b/sboconfig
index 0dbebb0..ca6d1fa 100755
--- a/sboconfig
+++ b/sboconfig
@@ -129,6 +129,10 @@ if (exists $changes{SLACKWARE_VERSION}) {
sub config_write {
script_error('config_write requires at least two arguments.') unless @_ >= 2;
+ if (! -d $conf_dir) {
+ mkdir $conf_dir or usage_error("Unable to create $conf_dir. Exiting.");
+ }
+
my $conf = slurp($conf_file) || '';
_fixup_conf($conf);