]> git.proxmox.com Git - pve-container.git/blobdiff - src/lxc-pve-poststop-hook
config update: ensure that tags are unique
[pve-container.git] / src / lxc-pve-poststop-hook
index 0fdd49ea4482a749083f99ca4ba801142c40a98a..2fe97ec89e814059083b7a65238db3b4fcb443f4 100755 (executable)
@@ -12,6 +12,7 @@ use PVE::LXC::Config;
 use PVE::LXC::Tools;
 use PVE::LXC;
 use PVE::Network;
+use PVE::RESTEnvironment;
 use PVE::Storage;
 use PVE::Tools;
 
@@ -20,6 +21,8 @@ PVE::LXC::Tools::lxc_hook('post-stop', 'lxc', sub {
 
     return undef if ! -f PVE::LXC::Config->config_file($vmid);
 
+    PVE::RESTEnvironment->setup_default_cli_env();
+
     my $conf = PVE::LXC::Config->load_config($vmid);
 
     my $storage_cfg = PVE::Storage::config();