Skip to content

Commit 667ae61

Browse files
committed
Fix webstats analyzer on Ubuntu 14.04
1 parent 6e20e88 commit 667ae61

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

bin/v-add-web-domain-stats

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ upd_web_domain_values
5252

5353
# Adding statistic config
5454
cat $WEBTPL/$type/$type.tpl |\
55-
sed -e "s/%ip%/$ip/g" \
56-
-e "s/%web_port%/$WEB_PORT/g" \
57-
-e "s/%web_system%/$WEB_SYSTEM/g" \
58-
-e "s/%web_ssl_port%/$WEB_SSL_PORT/g" \
59-
-e "s/%rgroups%/$WEB_RGROUPS/g" \
60-
-e "s/%proxy_system%/$PROXY_SYSTEM/g" \
61-
-e "s/%proxy_port%/$PROXY_PORT/g" \
62-
-e "s/%proxy_ssl_port%/$PROXY_SSL_PORT/g" \
63-
-e "s/%domain_idn%/$domain_idn/g" \
64-
-e "s/%domain%/$domain/g" \
65-
-e "s/%user%/$user/g" \
66-
-e "s/%home%/${HOMEDIR////\/}/g" \
67-
-e "s/%alias%/${aliases//,/ }/g" \
68-
-e "s/%alias_idn%/${aliases_idn//,/ }/g" \
55+
sed -e "s|%ip%|$ip|g" \
56+
-e "s|%web_port%|$WEB_PORT|g" \
57+
-e "s|%web_system%|$WEB_SYSTEM|g" \
58+
-e "s|%web_ssl_port%|$WEB_SSL_PORT|g" \
59+
-e "s|%rgroups%|$WEB_RGROUPs|g" \
60+
-e "s|%proxy_system%|$PROXY_SYSTEM|g" \
61+
-e "s|%proxy_port%|$PROXY_PORT|g" \
62+
-e "s|%proxy_ssl_port%|$PROXY_SSL_PORT|g" \
63+
-e "s|%domain_idn%|$domain_idn|g" \
64+
-e "s|%domain%|$domain|g" \
65+
-e "s|%user%|$user|g" \
66+
-e "s|%home%|$HOMEDIR|g" \
67+
-e "s|%alias%|${aliases//,/ }|g" \
68+
-e "s|%alias_idn%|${aliases_idn//,/ }|g" \
6969
> $HOMEDIR/$user/conf/web/$type.$domain.conf
7070

7171
if [ "$type" == 'awstats' ]; then

0 commit comments

Comments
 (0)