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
Fork the repo and clone | |
1. List the current configured remote repository for your fork: git remote -v | |
2. Specify a new remote upstream repository that will be synced with the fork: git remote add upstream git@github.com:[ORIGINAL_OWNER]/[REPO_NAME].git | |
3. Verify the new upstream repository you haveve specified for your fork: git remote -v | |
# origin git@github.com/YOUR_USERNAME/REPO_NAME.git (fetch) | |
# origin git@github.com/YOUR_USERNAME/REPO_NAME.git (push) | |
# upstream git@github.com/ORIGINAL_OWNER/REPO_NAME.git (fetch) | |
# upstream git@github.com/ORIGINAL_OWNER/REPO_NAME.git (push) | |
Syncing a fork |
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 |
NewerOlder