Skip to content

Instantly share code, notes, and snippets.

@kvaps
Last active March 15, 2017 23:56
Show Gist options
  • Select an option

  • Save kvaps/df0bf64d48265b2d62ea5d1501def55c to your computer and use it in GitHub Desktop.

Select an option

Save kvaps/df0bf64d48265b2d62ea5d1501def55c to your computer and use it in GitHub Desktop.

Proxmox 4.4

sed -i.bak "s/data.status !== 'Active'/false/g" \
   /usr/share/pve-manager/js/pvemanagerlib.js \
   /usr/share/pve-manager/touch/pvemanager-mobile.js

Watcher

apt -y install inotify-tools

cat > /etc/systemd/system/pve-patcher.service <<EOF
[Unit]
Description=PVE subscription popup disabler

[Service]
Environment=FILES=/usr/share/pve-manager/js/pvemanagerlib.js /usr/share/pve-manager/touch/pvemanager-mobile.js
ExecStart=/bin/bash -c "while true; do inotifywait -e modify \${FILES} ; sed -i.bak \"s/data.status !== 'Active'/false/g\" \${FILES}; done"

[Install]
WantedBy=multi-user.target
EOF

systemctl enable pve-patcher.service
systemctl start pve-patcher.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment