From 2c43e68445ad1949933ea82255b74d901a42072d Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Thu, 21 Jul 2022 16:03:40 +0200 Subject: [PATCH] Update: domain creator --- var/lib/stl/scripts/manage__domain | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/var/lib/stl/scripts/manage__domain b/var/lib/stl/scripts/manage__domain index a983b2f..1c14ca5 100644 --- a/var/lib/stl/scripts/manage__domain +++ b/var/lib/stl/scripts/manage__domain @@ -320,6 +320,10 @@ rsync -a "$PWD/$stl_file_pwd_conf" \ mkdir -p "$PWD/articles" mkdir -p "$PWD/articles/images" mkdir -p "$PWD/articles/files" +mkdir -p "$domain_srv/wip" +mkdir -p "$domain_srv/wip/template" +mkdir -p "$domain_srv/wip/files" +mkdir -p "$domain_srv/wip/images" # Create conf, according to installation (server, local) case "$stl_install" in @@ -330,31 +334,15 @@ case "$stl_install" in "domain_dir_www_images=\"$domain_srv/www/images\"" \ "domain_dir_www_files=\"$domain_srv/www/files\"" \ >> "$stl_file_pwd_conf" - + mkdir -p "$domain_srv/www" mkdir -p "$domain_srv/www/template" mkdir -p "$domain_srv/www/files" mkdir -p "$domain_srv/www/images" - - mkdir -p "$domain_srv/wip" - mkdir -p "$domain_srv/wip/template" - mkdir -p "$domain_srv/wip/files" - mkdir -p "$domain_srv/wip/images" - - printf '%s%s\n\n' \ - "! files template (logo, style.css...) must be put in " \ - "$domain_srv/wip/template/" - ;; - - local) - mkdir -p "$domain_srv/wip" - mkdir -p "$domain_srv/wip/template" - mkdir -p "$domain_srv/wip/files" - mkdir -p "$domain_srv/wip/images" - - printf '%s%s\n\n' \ - "! Your logo, styles.css... must be put in " \ - "$domain_srv/wip/template" ;; esac + +printf '%s%s\n\n' \ + "! files template (logo, style.css...) must be put in " \ + "$domain_srv/wip/template/" }