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:
parent
f5a7741649
commit
6c5fe0e558
|
@ -100,6 +100,7 @@ host_create() {
|
||||||
DOCUMENT_ROOT2="`echo $DOCUMENT_ROOT | sed -e 's/\\\\/\\\\\\\\/g' -e 's/#/\\\\#/g' -e 's/&/\\\\\\&/g'`"
|
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'`"
|
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'`"
|
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
|
# Put the good value in the conf file
|
||||||
sed -i \
|
sed -i \
|
||||||
|
@ -111,6 +112,7 @@ host_create() {
|
||||||
-e "s#%%UID%%#$U_ID#g" \
|
-e "s#%%UID%%#$U_ID#g" \
|
||||||
-e "s#%%GID%%#$G_ID#g" \
|
-e "s#%%GID%%#$G_ID#g" \
|
||||||
-e "s#%%mail_account%%#$MAIL_ACCOUNT#g" \
|
-e "s#%%mail_account%%#$MAIL_ACCOUNT#g" \
|
||||||
|
-e "s#%%user%%#$USER2#g" \
|
||||||
$TMP_FILE
|
$TMP_FILE
|
||||||
|
|
||||||
# Check if all is right in the conf file
|
# Check if all is right in the conf file
|
||||||
|
|
Loading…
Reference in New Issue