mirror of
https://github.com/Jamesits/pve-fake-subscription
synced 2025-12-06 11:07:00 -05:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31cd2b8746 | ||
|
|
499d00a81a | ||
|
|
d80468779e | ||
|
|
945b9247ef | ||
|
|
bcb1fe671c | ||
|
|
6a5aa2f026 |
11
README.md
11
README.md
@ -10,7 +10,7 @@ Disables the "No valid subscription" dialog on all Proxmox products.
|
|||||||
|
|
||||||
Works for:
|
Works for:
|
||||||
|
|
||||||
- Proxmox VE (5.x or later; 3.x and 4.x [require some manual actions](#compatibility-for-old-proxmox-ve-versions))
|
- Proxmox VE (5.x or later; 3.x and 4.x [require some manual actions](#compatibility-information-for-old-proxmox-ve-versions))
|
||||||
- Proxmox Mail Gateway (5.x or later)
|
- Proxmox Mail Gateway (5.x or later)
|
||||||
- Proxmox Backup Server (1.x or later)
|
- Proxmox Backup Server (1.x or later)
|
||||||
|
|
||||||
@ -60,21 +60,18 @@ Install [nFPM](https://nfpm.goreleaser.com/install/), then:
|
|||||||
./package.sh
|
./package.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compatibility for Old Proxmox VE Versions
|
### Compatibility Information for Old Proxmox VE Versions
|
||||||
|
|
||||||
#### PVE 4.x
|
#### PVE 4.x
|
||||||
|
|
||||||
PVE 4.x is supported with minor changes to the script.
|
|
||||||
|
|
||||||
After installation or updates, run:
|
After installation or updates, run:
|
||||||
```shell
|
```shell
|
||||||
sed -i'' -e's/pve8p/pve4p/g' /usr/bin/pve-fake-subscription
|
sed -i'' -e's/pve8p/pve4p/g' /usr/bin/pve-fake-subscription
|
||||||
|
pve-fake-subscription
|
||||||
```
|
```
|
||||||
|
|
||||||
#### PVE 3.x
|
#### PVE 3.x
|
||||||
|
|
||||||
PVE 3.x is supported with minor changes to the script.
|
|
||||||
|
|
||||||
Installation with `dpkg -i` will not work because of missing dependencies. Use the following script to install manually:
|
Installation with `dpkg -i` will not work because of missing dependencies. Use the following script to install manually:
|
||||||
```shell
|
```shell
|
||||||
# extract the deb package
|
# extract the deb package
|
||||||
@ -97,5 +94,5 @@ rm -rf /tmp/pve-fake-subscription
|
|||||||
|
|
||||||
Removal:
|
Removal:
|
||||||
```shell
|
```shell
|
||||||
rm -f /usr/local/bin/pve-fake-subscription /etc/cron.hourly/pve-fake-subscription
|
rm -f /usr/local/bin/pve-fake-subscription /etc/cron.hourly/pve-fake-subscription /etc/subscription
|
||||||
```
|
```
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
name: "pve-fake-subscription"
|
name: "pve-fake-subscription"
|
||||||
arch: "all"
|
arch: "all"
|
||||||
platform: "linux"
|
platform: "linux"
|
||||||
version: "0.0.10"
|
version: "0.0.11"
|
||||||
version_schema: "semver"
|
version_schema: "semver"
|
||||||
version_metadata: "git"
|
version_metadata: "git"
|
||||||
|
|
||||||
|
|||||||
@ -86,7 +86,7 @@ def activate_pve_pmg(key, subscription_file, *args, **kwargs):
|
|||||||
with open(subscription_file, "w") as f:
|
with open(subscription_file, "w") as f:
|
||||||
f.write(subscription)
|
f.write(subscription)
|
||||||
|
|
||||||
def generate_subscription_pbs(key, server_ids, product_name=ui_product_name, message=ui_message):
|
def generate_subscription_pbs(key, server_ids, product_name=ui_product_name, message=ui_message, url=ui_url):
|
||||||
localinfo = {
|
localinfo = {
|
||||||
"status": "active", # PBS: `new`, `notfound`, `active`, `invalid`
|
"status": "active", # PBS: `new`, `notfound`, `active`, `invalid`
|
||||||
"serverid": ",".join(server_ids),
|
"serverid": ",".join(server_ids),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user