Remonter dans les templates Apache l'utilisateur Alternc

Remonter dans les templates le compte alternc, peut être utile pour cibler certains repertoire par compte 
* close #1483

Note complémentaire : commit réalisé directement via Git
This commit is contained in:
Camille Lafitte 2013-04-22 16:57:05 +00:00
parent f5a7741649
commit 6c5fe0e558
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,7 @@ host_create() {
DOCUMENT_ROOT2="`echo $DOCUMENT_ROOT | sed -e 's/\\\\/\\\\\\\\/g' -e 's/#/\\\\#/g' -e 's/&/\\\\\\&/g'`"
ACCOUNT_ROOT2="`echo $ACCOUNT_ROOT | sed -e 's/\\\\/\\\\\\\\/g' -e 's/#/\\\\#/g' -e 's/&/\\\\\\&/g'`"
REDIRECT2="`echo $REDIRECT | sed -e 's/\\\\/\\\\\\\\/g' -e 's/#/\\\\#/g' -e 's/&/\\\\\\&/g'`"
USER2="`echo $USER | sed -e 's/\\\\/\\\\\\\\/g' -e 's/#/\\\\#/g' -e 's/&/\\\\\\&/g'`"
# Put the good value in the conf file
sed -i \
@ -111,6 +112,7 @@ host_create() {
-e "s#%%UID%%#$U_ID#g" \
-e "s#%%GID%%#$G_ID#g" \
-e "s#%%mail_account%%#$MAIL_ACCOUNT#g" \
-e "s#%%user%%#$USER2#g" \
$TMP_FILE
# Check if all is right in the conf file