Skip to content

Commit 2b2a57b

Browse files
authored
Update proxmox_toolbox.sh
1 parent f96520d commit 2b2a57b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

proxmox_toolbox.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
# Cosmetic corrections
4545

4646
# Proxmox_toolbox
47-
version=3.2
47+
version=3.3
4848
# V1.0: Initial Release
4949
# V1.1: correct detecition of subscription message removal
5050
# V2.0: Add backup and restore - reworked menu order - lots of small changes
@@ -57,6 +57,7 @@ version=3.2
5757
# V3.0: Remove useless mutiple versions for better clarity
5858
# V3.1: Merge backup folder in case there's pve and pbs on the same host - useless to have 2 content list
5959
# V3.2: Restauration now automatically remount directories and reimport existant zpools
60+
# V3.3: Add echo when restarting proxy services
6061

6162
# check if root
6263
if [[ $(id -u) -ne 0 ]] ; then echo "- Please run as root / sudo" ; exit 1 ; fi
@@ -162,10 +163,10 @@ main_menu(){
162163
else
163164
if [ -d "$pve_log_folder" ]; then
164165
echo "- Removing No Valid Subscription Message for PVE"
165-
sed -Ezi.bak "s/!== 'active'/== 'active'/" $proxmoxlib && systemctl restart pveproxy.service
166+
sed -Ezi.bak "s/!== 'active'/== 'active'/" $proxmoxlib && echo "- Restarting proxy service" && systemctl restart pveproxy.service
166167
else
167168
echo "- Removing No Valid Subscription Message for PBS"
168-
sed -Ezi.bak "s/!== 'active'/== 'active'/" $proxmoxlib && systemctl restart proxmox-backup-proxy.service
169+
sed -Ezi.bak "s/!== 'active'/== 'active'/" $proxmoxlib && echo "- Restarting proxy service" && systemctl restart proxmox-backup-proxy.service
169170
fi
170171
fi
171172
sleep 3

0 commit comments

Comments
 (0)