Skip to content

Commit 733c4ab

Browse files
authored
Remove some unnecessary text
1 parent 5155935 commit 733c4ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bin/v-import-directadmin

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ if [ -f "backup/crontab.conf" ]; then
371371
# Extract cron job details (handle cases where command contains spaces)
372372
IFS=' ' read -r min hour day month wday command <<< "$cron_line"
373373

374-
# Ensure it is a valid cron job line (i.e., min, hour, day, month, wday should be numeric or valid cron symbols)
374+
# Ensure it is a valid cron job line
375375
if ! [[ "$min" =~ ^[\*0-9,-/]+$ && "$hour" =~ ^[\*0-9,-/]+$ && "$day" =~ ^[\*0-9,-/]+$ && "$month" =~ ^[\*0-9,-/]+$ && "$wday" =~ ^[\*0-9,-/]+$ ]]; then
376376
echo "Invalid cron job format: $cron_line"
377377
continue
@@ -428,7 +428,6 @@ echo "# ENABLE LETSENCRYPT "
428428
echo "#######################################"
429429
tput sgr0
430430

431-
# Enable Let's Encrypt for each domain
432431
if [ "$letsencrypt_enable" = 1 ]; then
433432
for directadmin_domain in $directadmin_domain_list; do
434433
echo "Enabling Let's Encrypt for $directadmin_domain"

0 commit comments

Comments
 (0)