aboutsummaryrefslogtreecommitdiff
path: root/portal-gui/scripts/adduser.py
diff options
context:
space:
mode:
Diffstat (limited to 'portal-gui/scripts/adduser.py')
-rwxr-xr-xportal-gui/scripts/adduser.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/portal-gui/scripts/adduser.py b/portal-gui/scripts/adduser.py
index e762b7c1..22454823 100755
--- a/portal-gui/scripts/adduser.py
+++ b/portal-gui/scripts/adduser.py
@@ -78,4 +78,12 @@ asn_csv=%(path)s/asns.csv
roa_csv=%(path)s/roas.csv
prefix_csv=%(path)s/prefixes.csv""" % { 'path': myrpki_dir }
+ # create empty csv files so portal-gui doesn't barf
+ for base in ['roas', 'asns', 'prefixes']:
+ fname = '%s/%s.csv' % (myrpki_dir, base)
+ if not os.path.exists(fname):
+ print 'creating ', fname
+ with open(fname, 'w') as f:
+ pass # just create an empty file
+
# vim:sw=4 ts=8