File tree Expand file tree Collapse file tree 5 files changed +36
-5
lines changed
Expand file tree Collapse file tree 5 files changed +36
-5
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,11 @@ source $HESTIA/conf/hestia.conf
2929# Ensure that package names have been passed to the script.
3030if [ -z " $old_name " ]; then
3131 echo " ERROR: Current package name not specified."
32+ exit 1
3233fi
3334if [ -z " $new_name " ]; then
3435 echo " ERROR: New package name not specified."
36+ exit 1
3537fi
3638
3739# Perform verification if read-only mode is enabled
@@ -44,7 +46,7 @@ check_hestia_demo_mode
4446
4547if [ -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 ."
5760else
5861 echo " ERROR: Specified package not found."
5962fi
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 '
6871log_event " $OK " " $ARGUMENTS "
6972
7073exit
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -15,8 +15,15 @@ if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
1515 exit
1616fi
1717
18- # Load hestia.conf
18+ # ##############################################################
19+ # Initialize functions/variables #
20+ # ##############################################################
21+
22+ # Load upgrade functions and variables
23+ source /usr/local/hestia/func/main.sh
24+ source /usr/local/hestia/func/upgrade.sh
1925source /usr/local/hestia/conf/hestia.conf
26+ source /usr/local/hestia/install/upgrade/upgrade.conf
2027
2128# Reset backend port
2229if [ ! -z " $BACKEND_PORT " ]; then
Original file line number Diff line number Diff line change @@ -11,6 +11,16 @@ if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
1111 exit
1212fi
1313
14+ # ##############################################################
15+ # Initialize functions/variables #
16+ # ##############################################################
17+
18+ # Load upgrade functions and variables
19+ source /usr/local/hestia/func/main.sh
20+ source /usr/local/hestia/func/upgrade.sh
21+ source /usr/local/hestia/conf/hestia.conf
22+ source /usr/local/hestia/install/upgrade/upgrade.conf
23+
1424# Restart hestia service
1525if [ -f " /etc/init.d/hestia" ]; then
1626 systemctl restart hestia > /dev/null 2>&1
Original file line number Diff line number Diff line change 44 < a class ="ui-button cancel " dir ="ltr " href ='/list/stats/ '> < i class ="fas fa-info-circle status-icon lightblue "> </ i > < ?=_('Overall Statistics')?> </ a >
55 </ div >
66 < div class ="l-sort-toolbar clearfix ">
7+ < table >
8+ < tr >
9+ < td class ="l-sort-toolbar__search-box ">
10+ < form action ="/search/ " method ="get ">
11+ < input type ="hidden " name ="token " value ="<?=$_SESSION['token']?> " />
12+ < input type ="text " name ="q " class ="search-input " value ="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?> " />
13+ < button type ="submit " class ="l-sort-toolbar__filter-apply " onclick ="return doSearch('/search/') " value =""> < i class ="fas fa-search "> </ i > </ button >
14+ </ form >
15+ </ td >
16+ </ tr >
17+ </ table >
718 < table >
819 < tr >
920 < td >
You can’t perform that action at this time.
0 commit comments