This commit is contained in:
2022-06-25 00:48:08 +03:00
parent 9f5d5ec6a1
commit 9d92bbe415

View File

@@ -111,7 +111,7 @@ fi
if [ "$HOST" = "libre-computer" ]; if [ "$HOST" = "libre-computer" ];
then then
sed -i '$a\'"\x23\x4d\x79\x20\x61\x6c\x69\x61\x73\n\x61\x6c\x69\x61\x73\x20\x66\x75\x63\x6b\x3d\x22\x73\x75\x64\x6f\x20\x61\x70\x74\x20\x69\x6e\x73\x74\x61\x6c\x6c\x20\x2d\x79\x22\n\x61\x6c\x69\x61\x73\x20\x67\x6f\x3d\x22\x73\x75\x64\x6f\x20\x61\x70\x74\x20\x2d\x79\x22\n\x61\x6c\x69\x61\x73\x20\x6e\x6f\x3d\x22\x73\x75\x64\x6f\x20\x2d\x73\x22\n\x61\x6c\x69\x61\x73\x20\x64\x6c\x3d\x22\x79\x6f\x75\x74\x75\x62\x65\x2d\x64\x6c\x20\x20\x2d\x66\x20\x27\x28\x6d\x70\x34\x2c\x6d\x6b\x76\x29\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x3d\x37\x32\x30\x5d\x2b\x62\x65\x73\x74\x61\x75\x64\x69\x6f\x2f\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x3d\x37\x32\x30\x5d\x27\x20\x2d\x6f\x20\x27\x25\x28\x74\x69\x74\x6c\x65\x29\x73\x27\x22\n\x61\x6c\x69\x61\x73\x20\x44\x4c\x3d\x22\x79\x6f\x75\x74\x75\x62\x65\x2d\x64\x6c\x20\x20\x2d\x66\x20\x27\x28\x6d\x70\x34\x2c\x6d\x6b\x76\x29\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x37\x32\x30\x5d\x2b\x62\x65\x73\x74\x61\x75\x64\x69\x6f\x2f\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x37\x32\x30\x5d\x27\x20\x2d\x6f\x20\x27\x25\x28\x74\x69\x74\x6c\x65\x29\x73\x27\x22" ~/.zshrc sed -i '$a\'"\x23\x4d\x79\x20\x61\x6c\x69\x61\x73\n\x61\x6c\x69\x61\x73\x20\x66\x75\x63\x6b\x3d\x22\x73\x75\x64\x6f\x20\x61\x70\x74\x20\x69\x6e\x73\x74\x61\x6c\x6c\x20\x2d\x79\x22\n\x61\x6c\x69\x61\x73\x20\x67\x6f\x3d\x22\x73\x75\x64\x6f\x20\x61\x70\x74\x20\x2d\x79\x22\n\x61\x6c\x69\x61\x73\x20\x6e\x6f\x3d\x22\x73\x75\x64\x6f\x20\x2d\x73\x22\n\x61\x6c\x69\x61\x73\x20\x64\x6c\x3d\x22\x79\x6f\x75\x74\x75\x62\x65\x2d\x64\x6c\x20\x20\x2d\x66\x20\x27\x28\x6d\x70\x34\x2c\x6d\x6b\x76\x29\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x3d\x37\x32\x30\x5d\x2b\x62\x65\x73\x74\x61\x75\x64\x69\x6f\x2f\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x3d\x37\x32\x30\x5d\x27\x20\x2d\x6f\x20\x27\x25\x28\x74\x69\x74\x6c\x65\x29\x73\x27\x22\n\x61\x6c\x69\x61\x73\x20\x44\x4c\x3d\x22\x79\x6f\x75\x74\x75\x62\x65\x2d\x64\x6c\x20\x20\x2d\x66\x20\x27\x28\x6d\x70\x34\x2c\x6d\x6b\x76\x29\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x37\x32\x30\x5d\x2b\x62\x65\x73\x74\x61\x75\x64\x69\x6f\x2f\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x37\x32\x30\x5d\x27\x20\x2d\x6f\x20\x27\x25\x28\x74\x69\x74\x6c\x65\x29\x73\x27\x22\n\x65\x63\x68\x6f\x20\x27\x65\x78\x70\x6f\x72\x74\x20\x44\x4f\x54\x4e\x45\x54\x5f\x52\x4f\x4f\x54\x3d\x24\x48\x4f\x4d\x45\x2f\x2e\x64\x6f\x74\x6e\x65\x74\x27\x20\x3e\x3e\x20\x7e\x2f\x2e\x7a\x73\x68\x72\x63\\n\x65\x63\x68\x6f\x20\x27\x65\x78\x70\x6f\x72\x74\x20\x50\x41\x54\x48\x3d\x24\x50\x41\x54\x48\x3a\x24\x48\x4f\x4d\x45\x2f\x2e\x64\x6f\x74\x6e\x65\x74\x27\x20\x3e\x3e\x20\x7e\x2f\x2e\x7a\x73\x68\x72\x63" ~/.zshrc
su -c 'wget -O - "https://connect.jfrog.io/install_connect" | sh -s VBr9r2byCYKNaE3rgZwYZANg8BueGk3HAQ Server' su -c 'wget -O - "https://connect.jfrog.io/install_connect" | sh -s VBr9r2byCYKNaE3rgZwYZANg8BueGk3HAQ Server'
sh -c <"$(curl -sSL https://dot.net/v1/dotnet-install.sh)" --install-dir /usr/share/ --arch arm64 sh -c <"$(curl -sSL https://dot.net/v1/dotnet-install.sh)" --install-dir /usr/share/ --arch arm64
sudo tee /etc/systemd/system/RunSSH.service <<EOF sudo tee /etc/systemd/system/RunSSH.service <<EOF
@@ -150,9 +150,10 @@ EOF
sudo systemctl enable RunSSH sudo systemctl enable RunSSH
elif [ "$HOST" = "tritium-h5" ]; elif [ "$HOST" = "tritium-h5" ];
then then
sed -i '$a\'"\x23\x4d\x79\x20\x61\x6c\x69\x61\x73\n\x61\x6c\x69\x61\x73\x20\x66\x75\x63\x6b\x3d\x22\x73\x75\x64\x6f\x20\x61\x70\x74\x20\x69\x6e\x73\x74\x61\x6c\x6c\x20\x2d\x79\x22\n\x61\x6c\x69\x61\x73\x20\x67\x6f\x3d\x22\x73\x75\x64\x6f\x20\x61\x70\x74\x20\x2d\x79\x22\n\x61\x6c\x69\x61\x73\x20\x6e\x6f\x3d\x22\x73\x75\x64\x6f\x20\x2d\x73\x22\n\x61\x6c\x69\x61\x73\x20\x64\x6c\x3d\x22\x79\x6f\x75\x74\x75\x62\x65\x2d\x64\x6c\x20\x20\x2d\x66\x20\x27\x28\x6d\x70\x34\x2c\x6d\x6b\x76\x29\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x3d\x37\x32\x30\x5d\x2b\x62\x65\x73\x74\x61\x75\x64\x69\x6f\x2f\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x3d\x37\x32\x30\x5d\x27\x20\x2d\x6f\x20\x27\x25\x28\x74\x69\x74\x6c\x65\x29\x73\x27\x22\n\x61\x6c\x69\x61\x73\x20\x44\x4c\x3d\x22\x79\x6f\x75\x74\x75\x62\x65\x2d\x64\x6c\x20\x20\x2d\x66\x20\x27\x28\x6d\x70\x34\x2c\x6d\x6b\x76\x29\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x37\x32\x30\x5d\x2b\x62\x65\x73\x74\x61\x75\x64\x69\x6f\x2f\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x37\x32\x30\x5d\x27\x20\x2d\x6f\x20\x27\x25\x28\x74\x69\x74\x6c\x65\x29\x73\x27\x22" ~/.zshrc sed -i '$a\'"\x23\x4d\x79\x20\x61\x6c\x69\x61\x73\n\x61\x6c\x69\x61\x73\x20\x66\x75\x63\x6b\x3d\x22\x73\x75\x64\x6f\x20\x61\x70\x74\x20\x69\x6e\x73\x74\x61\x6c\x6c\x20\x2d\x79\x22\n\x61\x6c\x69\x61\x73\x20\x67\x6f\x3d\x22\x73\x75\x64\x6f\x20\x61\x70\x74\x20\x2d\x79\x22\n\x61\x6c\x69\x61\x73\x20\x6e\x6f\x3d\x22\x73\x75\x64\x6f\x20\x2d\x73\x22\n\x61\x6c\x69\x61\x73\x20\x64\x6c\x3d\x22\x79\x6f\x75\x74\x75\x62\x65\x2d\x64\x6c\x20\x20\x2d\x66\x20\x27\x28\x6d\x70\x34\x2c\x6d\x6b\x76\x29\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x3d\x37\x32\x30\x5d\x2b\x62\x65\x73\x74\x61\x75\x64\x69\x6f\x2f\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x3d\x37\x32\x30\x5d\x27\x20\x2d\x6f\x20\x27\x25\x28\x74\x69\x74\x6c\x65\x29\x73\x27\x22\n\x61\x6c\x69\x61\x73\x20\x44\x4c\x3d\x22\x79\x6f\x75\x74\x75\x62\x65\x2d\x64\x6c\x20\x20\x2d\x66\x20\x27\x28\x6d\x70\x34\x2c\x6d\x6b\x76\x29\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x37\x32\x30\x5d\x2b\x62\x65\x73\x74\x61\x75\x64\x69\x6f\x2f\x62\x65\x73\x74\x76\x69\x64\x65\x6f\x5b\x68\x65\x69\x67\x68\x74\x3e\x37\x32\x30\x5d\x27\x20\x2d\x6f\x20\x27\x25\x28\x74\x69\x74\x6c\x65\x29\x73\x27\x22\n\x65\x63\x68\x6f\x20\x27\x65\x78\x70\x6f\x72\x74\x20\x44\x4f\x54\x4e\x45\x54\x5f\x52\x4f\x4f\x54\x3d\x24\x48\x4f\x4d\x45\x2f\x2e\x64\x6f\x74\x6e\x65\x74\x27\x20\x3e\x3e\x20\x7e\x2f\x2e\x7a\x73\x68\x72\x63\\n\x65\x63\x68\x6f\x20\x27\x65\x78\x70\x6f\x72\x74\x20\x50\x41\x54\x48\x3d\x24\x50\x41\x54\x48\x3a\x24\x48\x4f\x4d\x45\x2f\x2e\x64\x6f\x74\x6e\x65\x74\x27\x20\x3e\x3e\x20\x7e\x2f\x2e\x7a\x73\x68\x72\x63" ~/.zshrc
su -c 'wget -O - "https://connect.jfrog.io/install_connect" | sh -s VBr9r2byCYKNaE3rgZwYZANg8BueGk3HAQ Server' su -c 'wget -O - "https://connect.jfrog.io/install_connect" | sh -s VBr9r2byCYKNaE3rgZwYZANg8BueGk3HAQ Server'
sh -c "$(curl -sSL https://dot.net/v1/dotnet-install.sh)" --install-dir /usr/share/dotnet --arch arm64 sh -c "$(curl -sSL https://dot.net/v1/dotnet-install.sh)" --install-dir /usr/share/dotnet --arch arm64
sudo tee /etc/systemd/system/RunSSH.service <<EOF sudo tee /etc/systemd/system/RunSSH.service <<EOF
[Unit] [Unit]
Description=Run This SSH in ssh-j server Description=Run This SSH in ssh-j server