Compare commits

..

No commits in common. "89758cb050febc01d63b4847dcd131d64245e578" and "294295fd41536950790d4275f0b02244a31f8bf2" have entirely different histories.

3 changed files with 2 additions and 7 deletions

View File

@ -1,6 +1,6 @@
Summary: LibreSchool Client Manager
Name: libreschool-client-manager
Version: 1.0.3
Version: 1.0.2
Release: 1.ns7
License: GPL
BuildArch: noarch
@ -97,9 +97,6 @@ if [ "$1" = 0 ]; then
fi
%changelog
* Sun Mar 8 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.3-1.ns7
- fix re-adoption
* Sat Mar 7 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.2-1.ns7
- fix re-adoption
- added some required packages

View File

@ -17,8 +17,6 @@ ping -c1 "$HOST" >/dev/null || (
exit 1
)
ssh-keygen -R "${HOST}"
sshpass -p "${PASS}" ssh -t -o StrictHostKeyChecking=no "${USER}@${HOST}" "whoami" || (
echo "Can't login to $HOST as $USER"
exit 1
@ -37,6 +35,7 @@ if [[ "$AMIROOT" = "" ]]; then
fi
PUB=$(db configuration getprop client-manager ManagementKeyFile)
ssh-keygen -R "${HOST}"
cat $PUB | \
sshpass -p "${PASS}" ssh -t -o StrictHostKeyChecking=no "${USER}@${HOST}" "echo '${PASS}' | sudo -S mkdir /root/.ssh >/dev/null ; sudo tee -a /root/.ssh/authorized_keys"

1
root/usr/bin/client-shell Executable file → Normal file
View File

@ -13,5 +13,4 @@ if [ "$USER" = "" ] ; then
exit 1
fi
/usr/bin/sudo -u amgmt ssh-keygen -R "${1}"
/usr/bin/sudo -u amgmt /usr/bin/ssh -o StrictHostKeyChecking=no ${USER}\@${1} ${@:2}