{"_id":"5a4ae7ef32bc1c003cb39ff5","project":"54e7fca9e6e77d1900ed11f0","version":{"_id":"5a1db098b15d1b001ebc5ef2","project":"54e7fca9e6e77d1900ed11f0","__v":1,"createdAt":"2017-11-28T18:53:12.270Z","releaseDate":"2017-11-28T18:53:12.270Z","categories":["5a1db098b15d1b001ebc5ef3","5a1db098b15d1b001ebc5ef4","5a1db098b15d1b001ebc5ef5","5a1db098b15d1b001ebc5ef6"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.2.0","version":"1.2"},"category":{"_id":"5a1db098b15d1b001ebc5ef3","version":"5a1db098b15d1b001ebc5ef2","project":"54e7fca9e6e77d1900ed11f0","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-21T03:34:02.028Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"user":"54e7ff93c1c5e90d0048bd92","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-01-02T02:01:19.632Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"This section will guide you on updating pufferd from any v1.2 version to the latest version of v1.2. If you are using an older version, please refer to the guide located beneath it.\"\n}\n[/block]\nUpdating from any v1.2 version is as simple as:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"apt-get update\\napt-get upgrade pufferd\",\n      \"language\": \"text\",\n      \"name\": \"Debian/Ubuntu\"\n    },\n    {\n      \"code\": \"yum update pufferd\",\n      \"language\": \"text\",\n      \"name\": \"CentOS\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"The below guide will instruct you on how to upgrade pufferd to v1.2, which will use our repositories to handle updates from now on.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Preparing pufferd\"\n}\n[/block]\nIn order to successfully install pufferd using your package manager without issues, it is important to follow these instructions carefully.\n\n**Please back up your server files (located in `/var/lib/pufferd/servers`) before continuing.**\n\nPlease choose the correct tab for your distribution of Linux and run the following commands as root (you can run `sudo -i` beforehand).\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"systemctl stop pufferd\\nsystemctl disable pufferd\\nrm /etc/systemd/system/pufferd.service\\nrm /srv/pufferd/pufferd\",\n      \"language\": \"shell\",\n      \"name\": \"Ubuntu 16.04 / Debian 8 / CentOS 7\"\n    },\n    {\n      \"code\": \"service pufferd stop\\nrm /etc/init.d/pufferd\",\n      \"language\": \"shell\",\n      \"name\": \"Ubuntu 14.04\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Adding the pufferd repository\"\n}\n[/block]\nPlease choose the correct tab for your distribution of Linux.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -s https://packagecloud.io/install/repositories/pufferpanel/pufferd/script.deb.sh | sudo bash\",\n      \"language\": \"shell\",\n      \"name\": \"Ubuntu / Debian\"\n    },\n    {\n      \"code\": \"curl -s https://packagecloud.io/install/repositories/pufferpanel/pufferd/script.rpm.sh | sudo bash\",\n      \"language\": \"shell\",\n      \"name\": \"CentOS 7\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Installing pufferd\"\n}\n[/block]\nAssuming the previous steps completely successfully, you should be able to install pufferd from the repository by running the following command depending on your distribution of Linux.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"apt install pufferd\\nsystemctl enable pufferd\\nsystemctl start pufferd\",\n      \"language\": \"shell\",\n      \"name\": \"Ubuntu 16.04 / Debian 8\"\n    },\n    {\n      \"code\": \"yum install pufferd\\nsystemctl enable pufferd\\nsystemctl start pufferd\",\n      \"language\": \"shell\",\n      \"name\": \"CentOS 7\"\n    },\n    {\n      \"code\": \"apt install pufferd\\nservice pufferd start\",\n      \"language\": \"shell\",\n      \"name\": \"Ubuntu 14.04\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Regenerating templates\"\n}\n[/block]\nIn order to take advantage of improvements made to the default templates please run the following commands.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"su pufferd\\npufferd --regenerate\\nexit\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nYour upgrade of pufferd should be complete. Please note that Docker templates will not work without following the guide [located here](doc:using-docker-with-pufferpanel).\n[block:callout]\n{\n  \"type\": \"success\",\n  \"body\": \"You may need to start your servers manually if `autostart` is not set to `true` in the server's definition file.\"\n}\n[/block]","excerpt":"Upgrading pufferd","slug":"upgrading-pufferd","type":"basic","title":"Upgrading pufferd"}

Upgrading pufferd

Upgrading pufferd

[block:callout] { "type": "info", "body": "This section will guide you on updating pufferd from any v1.2 version to the latest version of v1.2. If you are using an older version, please refer to the guide located beneath it." } [/block] Updating from any v1.2 version is as simple as: [block:code] { "codes": [ { "code": "apt-get update\napt-get upgrade pufferd", "language": "text", "name": "Debian/Ubuntu" }, { "code": "yum update pufferd", "language": "text", "name": "CentOS" } ] } [/block] [block:callout] { "type": "info", "body": "The below guide will instruct you on how to upgrade pufferd to v1.2, which will use our repositories to handle updates from now on." } [/block] [block:api-header] { "title": "Preparing pufferd" } [/block] In order to successfully install pufferd using your package manager without issues, it is important to follow these instructions carefully. **Please back up your server files (located in `/var/lib/pufferd/servers`) before continuing.** Please choose the correct tab for your distribution of Linux and run the following commands as root (you can run `sudo -i` beforehand). [block:code] { "codes": [ { "code": "systemctl stop pufferd\nsystemctl disable pufferd\nrm /etc/systemd/system/pufferd.service\nrm /srv/pufferd/pufferd", "language": "shell", "name": "Ubuntu 16.04 / Debian 8 / CentOS 7" }, { "code": "service pufferd stop\nrm /etc/init.d/pufferd", "language": "shell", "name": "Ubuntu 14.04" } ] } [/block] [block:api-header] { "title": "Adding the pufferd repository" } [/block] Please choose the correct tab for your distribution of Linux. [block:code] { "codes": [ { "code": "curl -s https://packagecloud.io/install/repositories/pufferpanel/pufferd/script.deb.sh | sudo bash", "language": "shell", "name": "Ubuntu / Debian" }, { "code": "curl -s https://packagecloud.io/install/repositories/pufferpanel/pufferd/script.rpm.sh | sudo bash", "language": "shell", "name": "CentOS 7" } ] } [/block] [block:api-header] { "title": "Installing pufferd" } [/block] Assuming the previous steps completely successfully, you should be able to install pufferd from the repository by running the following command depending on your distribution of Linux. [block:code] { "codes": [ { "code": "apt install pufferd\nsystemctl enable pufferd\nsystemctl start pufferd", "language": "shell", "name": "Ubuntu 16.04 / Debian 8" }, { "code": "yum install pufferd\nsystemctl enable pufferd\nsystemctl start pufferd", "language": "shell", "name": "CentOS 7" }, { "code": "apt install pufferd\nservice pufferd start", "language": "shell", "name": "Ubuntu 14.04" } ] } [/block] [block:api-header] { "title": "Regenerating templates" } [/block] In order to take advantage of improvements made to the default templates please run the following commands. [block:code] { "codes": [ { "code": "su pufferd\npufferd --regenerate\nexit", "language": "shell" } ] } [/block] Your upgrade of pufferd should be complete. Please note that Docker templates will not work without following the guide [located here](doc:using-docker-with-pufferpanel). [block:callout] { "type": "success", "body": "You may need to start your servers manually if `autostart` is not set to `true` in the server's definition file." } [/block]