We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aed60f commit ae754f9Copy full SHA for ae754f9
func/rebuild.sh
@@ -278,10 +278,11 @@ rebuild_web_domain_conf() {
278
-e "s|%alias_idn%|${aliases_idn//,/ }|g" \
279
> $HOMEDIR/$user/conf/web/$domain/$STATS.conf
280
if [ "$STATS" == 'awstats' ]; then
281
- if [ ! -e "/etc/awstats/$STATS.$domain_idn.conf" ]; then
282
- ln -f -s $HOMEDIR/$user/conf/web/$domain/$STATS.conf \
283
- /etc/awstats/$STATS.$domain_idn.conf
+ if [ -e "/etc/awstats/$STATS.$domain_idn.conf" ]; then
+ rm -f "/etc/awstats/$STATS.$domain_idn.conf"
284
fi
+ ln -f -s $HOMEDIR/$user/conf/web/$domain/$STATS.conf \
285
+ /etc/awstats/$STATS.$domain_idn.conf
286
287
288
webstats="$BIN/v-update-web-domain-stat $user $domain"
0 commit comments