Skip to content

Commit e20fee0

Browse files
authored
Update run.sh
1 parent 32fbe01 commit e20fee0

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

run.sh

+21-22
Original file line numberDiff line numberDiff line change
@@ -69,26 +69,28 @@ cp $BUILD/apteryx-xml/models/*.xml $BUILD/etc/apteryx/schema/
6969
cp $BUILD/apteryx-xml/models/*.map $BUILD/etc/apteryx/schema/
7070

7171
# Check openssh
72-
if [ ! -d openssh ]; then
73-
echo "Downloading openssh"
74-
git clone --depth 1 --branch V_8_8_P1 git://anongit.mindrot.org/openssh.git
75-
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
76-
fi
77-
if [ ! -f $BUILD/usr/sbin/sshd ]; then
78-
echo "Building openssh"
79-
cd openssh
80-
autoreconf -fvi
81-
./configure --prefix=/usr --with-privsep-path=$BUILD/empty --with-privsep-user=manager
82-
make install-nokeys DESTDIR=$BUILD
83-
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
84-
cd $BUILD
85-
mkdir -p $BUILD/empty
86-
chmod 755 $BUILD/empty
87-
sudo chown root:sys $BUILD/empty
88-
fi
72+
# if [ ! -d openssh ]; then
73+
# echo "Downloading openssh"
74+
# git clone --depth 1 --branch V_8_8_P1 git://anongit.mindrot.org/openssh.git
75+
# rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
76+
# fi
77+
# if [ ! -f $BUILD/usr/sbin/sshd ]; then
78+
# echo "Building openssh"
79+
# cd openssh
80+
# autoreconf -fvi
81+
# ./configure --prefix=/usr --with-privsep-path=$BUILD/empty --with-privsep-user=manager
82+
# make install-nokeys DESTDIR=$BUILD
83+
# rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
84+
# cd $BUILD
85+
# mkdir -p $BUILD/empty
86+
# chmod 755 $BUILD/empty
87+
# sudo chown root:sys $BUILD/empty
88+
# fi
8989
if [ ! -f $BUILD/ssh_host_rsa_key ]; then
90-
$BUILD/usr/bin/ssh-keygen -b 2048 -t rsa -f $BUILD/ssh_host_rsa_key -q -N ""
90+
/usr/bin/ssh-keygen -b 2048 -t rsa -f $BUILD/ssh_host_rsa_key -q -N ""
91+
rc=$?; if [[ $rc != 0 ]]; then quit $rc; fi
9192
fi
93+
mkdir -p /run/sshd
9294
echo -e "
9395
LogLevel DEBUG3
9496
HostKey $BUILD/ssh_host_rsa_key
@@ -136,7 +138,7 @@ rc=$?; if [[ $rc != 0 ]]; then quit $rc; fi
136138
# Start sshd
137139
sudo useradd -M -p $(perl -e 'print crypt($ARGV[0], "password")' 'friend') manager
138140
rc=$?; if [[ $rc != 0 ]]; then quit $rc; fi
139-
sudo $BUILD/usr/sbin/sshd -f $BUILD/sshd_config
141+
sudo /usr/sbin/sshd -f $BUILD/sshd_config
140142
rc=$?; if [[ $rc != 0 ]]; then quit $rc; fi
141143

142144
# Parameters
@@ -159,9 +161,6 @@ cd $BUILD/../
159161

160162
if [ $ACTION == "test" ]; then
161163
python3 -m pytest -v -k test_get_subtree_trunk
162-
ls -l /var/log
163-
cat /var/log/syslog
164-
cat /var/log/auth.log
165164
rc=$?; if [[ $rc != 0 ]]; then quit $rc; fi
166165
fi
167166

0 commit comments

Comments
 (0)