Skip to content

Commit

Permalink
Fix $temp_dir var
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas North committed Apr 8, 2018
1 parent 7decd28 commit 2c2f455
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions functions
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ perform_installation() {
echo "${b}Finished installing dependencies.${x}"
echo

mkdir -p $tls_dir
mkdir -p $tmp_dir
mkdir -p "$tls_dir"
mkdir -p "$temp_dir"

################################################################################

Expand Down Expand Up @@ -1350,9 +1350,9 @@ perform_installation() {
/usr/sbin/service sslh stop &> /dev/null || true
ssh_port="$(cat $os_base_dir/inception/ssh-port)"
apt-get -y install libwrap0-dev libconfig8-dev || true
rm -r $tmp_dir/sslh &> /dev/null || true
git clone https://github.com/yrutschle/sslh $tmp_dir/sslh
( cd $tmp_dir/sslh && make install && make && cp sslh-select /usr/local/sbin/sslh )
rm -r "$temp_dir/sslh" &> /dev/null || true
git clone https://github.com/yrutschle/sslh "$temp_dir/sslh"
( cd "$temp_dir/sslh" && make install && make && cp sslh-select /usr/local/sbin/sslh )
sed -i "s|this_ipv4-var|${this_ipv4}|g" $source_dir/conf/sslh/etc-sslh.cfg
if [ $ipv6_avail = "y" ]
then
Expand All @@ -1370,7 +1370,7 @@ perform_installation() {
chmod +x /etc/init.d/sslh
update-rc.d sslh defaults
systemctl daemon-reload
rm -r $tmp_dir/sslh
rm -r "$temp_dir/sslh"
mkdir -p /var/run/sslh
touch /var/run/sslh/sslh.pid
service sslh restart || true
Expand Down

0 comments on commit 2c2f455

Please sign in to comment.