Fix: domain creator (local install + statoolinfos)
This commit is contained in:
parent
c60481c4a0
commit
a60cdce83e
|
@ -361,7 +361,7 @@ Dans l'article :
|
|||
# Chaque item <li> utilise la classe : xxx_li xxx_li-X
|
||||
# où X est le nombre de marquurs
|
||||
|
||||
# La sortie de cette liste en HTML, avec le valeur CSS choisie "a-lec" :
|
||||
# La sortie de cette liste en HTML, avec le préfix CSS choisi "a-lec" :
|
||||
|
||||
<ul class="a-lec_list a-lec_list-ul couverture couverture-ul">
|
||||
<li class="a-lec_li a-lec_li-1">Livre 1</li>
|
||||
|
|
|
@ -361,7 +361,7 @@ Dans l'article :
|
|||
# Chaque item <li> utilise la classe : xxx_li xxx_li-X
|
||||
# où X est le nombre de marquurs
|
||||
|
||||
# La sortie de cette liste en HTML, avec le valeur CSS choisie "a-lec" :
|
||||
# La sortie de cette liste en HTML, avec le préfix CSS choisi "a-lec" :
|
||||
|
||||
<ul class="a-lec_list a-lec_list-ul couverture couverture-ul">
|
||||
<li class="a-lec_li a-lec_li-1">Livre 1</li>
|
||||
|
|
|
@ -257,6 +257,8 @@ domain__get
|
|||
|
||||
create__RSS_feed
|
||||
rsync -a --exclude ".*" "$domain_dir_wip/" "$domain_dir_www/"
|
||||
|
||||
# Log
|
||||
this_article="$domain_dir_www"
|
||||
log__add -i -M WWW "Synced WIP server to WWW server"
|
||||
}
|
||||
|
|
|
@ -158,8 +158,8 @@ domain_srv="$srv_uri/$domain_name"
|
|||
# Installation: server or local
|
||||
read -rp "- STL server installed (Y|N for local ; use wip only) ? " install
|
||||
case "$install" in
|
||||
Y) stl_install="server" ;;
|
||||
N) stl_install="local" ;;
|
||||
Y|y) stl_install="server" ;;
|
||||
N|n) stl_install="local" ;;
|
||||
*) echo "# Maybe later..." ;;
|
||||
esac
|
||||
|
||||
|
@ -222,12 +222,21 @@ read -rp "- Domain logo filename ? " domain_logo
|
|||
# External URL Profile
|
||||
read -rp "- Domain external URL Profile ? " domain_ext_url
|
||||
|
||||
# Statoolinfos
|
||||
read -rp "- Generate file stats (Statoolinfos) ? " domain_stats
|
||||
case "$domain_stats" in
|
||||
Y|y) domain_stats="yes" ;;
|
||||
N|n) domain_stats="no" ;;
|
||||
*) echo "# Maybe later..." ;;
|
||||
esac
|
||||
|
||||
# Resume before writing conf
|
||||
# ------
|
||||
clear
|
||||
echo -e "# Resume configuration...\n"
|
||||
cat <<EODOMAINCONF
|
||||
STL Inslallation : $stl_install
|
||||
STL stats generator : $domain_stats
|
||||
Domain Directory : $PWD
|
||||
Domain : $domain_name
|
||||
URL : $domain_protocol$domain_name
|
||||
|
@ -285,6 +294,7 @@ domain_ext_url="$domain_ext_url"
|
|||
# You must know what you do if you change from here...
|
||||
# STL configurationn
|
||||
stl_install="$stl_install"
|
||||
domain_stats="$domain_stats"
|
||||
domain_db_articles="$stl_dir_db/$domain_name/articles"
|
||||
domain_conf="$PWD/$stl_file_pwd_conf"
|
||||
|
||||
|
@ -337,13 +347,13 @@ case "$stl_install" in
|
|||
;;
|
||||
|
||||
local)
|
||||
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\n\n' \
|
||||
"! You logo must be put in $domain_srv/www/template"
|
||||
"! You logo must be put in $domain_srv/wip/template"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue