Compare commits
No commits in common. "89758cb050febc01d63b4847dcd131d64245e578" and "294295fd41536950790d4275f0b02244a31f8bf2" have entirely different histories.
89758cb050
...
294295fd41
@ -1,6 +1,6 @@
|
|||||||
Summary: LibreSchool Client Manager
|
Summary: LibreSchool Client Manager
|
||||||
Name: libreschool-client-manager
|
Name: libreschool-client-manager
|
||||||
Version: 1.0.3
|
Version: 1.0.2
|
||||||
Release: 1.ns7
|
Release: 1.ns7
|
||||||
License: GPL
|
License: GPL
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -97,9 +97,6 @@ if [ "$1" = 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Mar 7 2020 Paolo Asperti <paolo@asoerti.com> - 1.0.2-1.ns7
|
||||||
- fix re-adoption
|
- fix re-adoption
|
||||||
- added some required packages
|
- added some required packages
|
||||||
|
@ -17,8 +17,6 @@ ping -c1 "$HOST" >/dev/null || (
|
|||||||
exit 1
|
exit 1
|
||||||
)
|
)
|
||||||
|
|
||||||
ssh-keygen -R "${HOST}"
|
|
||||||
|
|
||||||
sshpass -p "${PASS}" ssh -t -o StrictHostKeyChecking=no "${USER}@${HOST}" "whoami" || (
|
sshpass -p "${PASS}" ssh -t -o StrictHostKeyChecking=no "${USER}@${HOST}" "whoami" || (
|
||||||
echo "Can't login to $HOST as $USER"
|
echo "Can't login to $HOST as $USER"
|
||||||
exit 1
|
exit 1
|
||||||
@ -37,6 +35,7 @@ if [[ "$AMIROOT" = "" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
PUB=$(db configuration getprop client-manager ManagementKeyFile)
|
PUB=$(db configuration getprop client-manager ManagementKeyFile)
|
||||||
|
ssh-keygen -R "${HOST}"
|
||||||
cat $PUB | \
|
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"
|
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
1
root/usr/bin/client-shell
Executable file → Normal file
@ -13,5 +13,4 @@ if [ "$USER" = "" ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/usr/bin/sudo -u amgmt ssh-keygen -R "${1}"
|
|
||||||
/usr/bin/sudo -u amgmt /usr/bin/ssh -o StrictHostKeyChecking=no ${USER}\@${1} ${@:2}
|
/usr/bin/sudo -u amgmt /usr/bin/ssh -o StrictHostKeyChecking=no ${USER}\@${1} ${@:2}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user