This repository was archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathinstall.sh
More file actions
60 lines (45 loc) · 1.47 KB
/
Copy pathinstall.sh
File metadata and controls
60 lines (45 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# wget -qO - https://raw.githubusercontent.com/fffaraz/dockerweb/master/install.sh | bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
set -euxo pipefail
sed -i "s/Port 22/Port 7071/" /etc/ssh/sshd_config
service ssh restart
export DEBIAN_FRONTEND=noninteractive
apt -yq update < /dev/null
apt -yq upgrade < /dev/null
apt -yq dist-upgrade < /dev/null
apt -yq full-upgrade < /dev/null
apt -yq --fix-broken install < /dev/null
apt -yq install apt-transport-https ca-certificates git wget < /dev/null
apt -yq autoremove < /dev/null
mkdir -p /opt
git clone https://github.com/fffaraz/dockerweb.git /opt/dockerweb
echo 'export PATH=$PATH:/opt/dockerweb' >> ~/.profile
#echo 'alias docweb="/opt/dockerweb/docweb"' >> ~/.bash_aliases
#alias docweb="/opt/dockerweb/docweb"
#cat /proc/meminfo | grep SwapTotal:
#cat /proc/meminfo | grep MemTotal:
#docweb install:swapfile 1024
#docweb bootstrap
# bash completion for the `docweb` command
# _docweb_complete() {
# local OLD_IFS="$IFS"
# local cur=${COMP_WORDS[COMP_CWORD]}
# IFS=$'\n'; # want to preserve spaces at the end
# local opts="$(docweb cli completions --line="$COMP_LINE" --point="$COMP_POINT")"
# if [[ "$opts" =~ \<file\>\s* ]]
# then
# COMPREPLY=( $(compgen -f -- $cur) )
# elif [[ $opts = "" ]]
# then
# COMPREPLY=( $(compgen -f -- $cur) )
# else
# COMPREPLY=( ${opts[*]} )
# fi
# IFS="$OLD_IFS"
# return 0
# }
# complete -o nospace -F _docweb_complete docweb