forked from JiYou/openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·29 lines (24 loc) · 724 Bytes
/
Copy pathinit.sh
File metadata and controls
executable file
·29 lines (24 loc) · 724 Bytes
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
#!/bin/bash
set -e
set -o xtrace
TOP_DIR=$(cd $(dirname "$0") && pwd)
TEMP=`mktemp`; rm -rfv $TEMP >/dev/null; mkdir -p $TEMP;
DEST=/opt/stack
source ./function
#---------------------------------------------
# Check for apt.
#---------------------------------------------
DEBIAN_FRONTEND=noninteractive \
apt-get --option \
"Dpkg::Options::=--force-confold" --assume-yes \
install -y --force-yes openssh-server
#---------------------------------------------
# Kill process by Name
#---------------------------------------------
cp -rf ./nkill /usr/bin/
chmod +x /usr/bin/nkill
#---------------------------------------------
# Set up iptables.
#---------------------------------------------
setup_iptables
set +o xtrace