Skip to content

Commit 3292a6b

Browse files
author
Kristan Kenney
committed
Merge branch 'main' into feature/user-roles
2 parents e812d20 + 5305ce3 commit 3292a6b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ source $HESTIA/conf/hestia.conf
2929
# Ensure that package names have been passed to the script.
3030
if [ -z "$old_name" ]; then
3131
echo "ERROR: Current package name not specified."
32+
exit 1
3233
fi
3334
if [ -z "$new_name" ]; then
3435
echo "ERROR: New package name not specified."
36+
exit 1
3537
fi
3638

3739
# Perform verification if read-only mode is enabled
@@ -44,7 +46,7 @@ check_hestia_demo_mode
4446

4547
if [ -e $HESTIA/data/packages/$old_name.pkg ]; then
4648
mv $HESTIA/data/packages/$old_name.pkg $HESTIA/data/packages/$new_name.pkg
47-
echo "Successfully renamed $old_name to $new_name."
49+
4850

4951
# Update package for existing users
5052
for user in `ls $HESTIA/data/users/`; do
@@ -54,6 +56,7 @@ if [ -e $HESTIA/data/packages/$old_name.pkg ]; then
5456
v-change-user-package $user $new_name
5557
fi
5658
done
59+
echo "Successfully renamed package $old_name to $new_name."
5760
else
5861
echo "ERROR: Specified package not found."
5962
fi
@@ -64,7 +67,7 @@ fi
6467
#----------------------------------------------------------#
6568

6669
# Logging
67-
log_history "renamed package $old_name to $new_name"
70+
log_history "renamed package $old_name to $new_name" '' 'admin'
6871
log_event "$OK" "$ARGUMENTS"
6972

7073
exit

install/upgrade/versions/1.4.0.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ if [ "$MAIL_SYSTEM" == "exim4" ]; then
2525
echo "[ * ] Populating HELO/SMTP Banner param for existing IP's..."
2626
> /etc/exim4/mailhelo.conf
2727

28-
for ip in $(v-list-sys-ips plain | cut -f1); do
28+
for ip in $($BIN/v-list-sys-ips plain | cut -f1); do
2929
helo=$(is_ip_rdns_valid $ip)
3030

3131
if [ ! -z "$helo" ]; then
32-
v-change-sys-ip-helo $ip $helo
32+
$BIN/v-change-sys-ip-helo $ip $helo
3333
fi
3434
done
3535

0 commit comments

Comments
 (0)