This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# system update upgrade | |
apt-get update && sudo apt-get -y upgrade | |
# install docker | |
wget -qO- https://get.docker.com/ | sh | |
# generate random password | |
ZPANLE_ADMIN_PASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 12 | head -n 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create file /etc/init/zpanelcp.conf | |
description "ZPanelCP by Infoglans" | |
author "Infoglans" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
script | |
/usr/bin/docker start -a zpanelcp | |
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install dpkg-dev and package dependencies | |
sudo apt-get install dpkg-dev | |
sudo apt-get install software-properties-common | |
sudo apt-get install python-software-properties | |
sudo apt-get install init-system-helpers | |
#Add repository: | |
sudo add-apt-repository ppa:nginx/stable | |
#Edit /etc/apt/sources.list.d/nginx-stable-lucid.list, add dpkg-src (no need if ubuntu verson >= 12.04): |
NewerOlder