Skip to content

Commit e1dfb00

Browse files
authored
correcting lets-encrypt logs (hestiacp#1968)
* correcting lets-encrypt logs Prevent the creation of several lets encrypt files as shown in hestiacp#1966 * update to show the full date in a readable format sorry, forgot about that
1 parent 47713e7 commit e1dfb00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-add-letsencrypt-domain

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,12 @@ if [ ! -z "$mail" ]; then
127127
fi
128128
fi
129129

130-
log_file="/var/log/hestia/LE-${user}-${domain}-$(date +%Y%m%d-%H%M%S).log"
130+
log_file="/var/log/hestia/LE-${user}-${domain}.log"
131131
touch "$log_file"
132132
chmod 600 "$log_file"
133133

134134
echo -e "\n\n=============================
135+
Date Time: $(date +%Y-%m-%d) $(date +%H:%M:%S)
135136
WEB_SYSTEM: ${WEB_SYSTEM}
136137
PROXY_SYSTEM: ${PROXY_SYSTEM}
137138
user: ${user}

0 commit comments

Comments
 (0)