Update: domain creator

This commit is contained in:
Cyrille L 2022-07-21 16:03:40 +02:00
parent 4febd2d63b
commit 2c43e68445
1 changed files with 9 additions and 21 deletions

View File

@ -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/"
}