Double quotes
This commit is contained in:
parent
d98c227c38
commit
997b723d6c
|
@ -454,8 +454,8 @@ function install_gogs {
|
|||
echo 'Type=simple' >> /etc/systemd/system/gogs.service
|
||||
echo 'User=gogs' >> /etc/systemd/system/gogs.service
|
||||
echo 'Group=some_group' >> /etc/systemd/system/gogs.service
|
||||
echo 'WorkingDirectory=/home/$GOGS_USERNAME' >> /etc/systemd/system/gogs.service
|
||||
echo 'ExecStart=/home/$GOGS_USERNAME/gogs web' >> /etc/systemd/system/gogs.service
|
||||
echo "WorkingDirectory=/home/$GOGS_USERNAME" >> /etc/systemd/system/gogs.service
|
||||
echo "ExecStart=/home/$GOGS_USERNAME/gogs web" >> /etc/systemd/system/gogs.service
|
||||
echo 'Restart=always' >> /etc/systemd/system/gogs.service
|
||||
echo 'RestartSec=10' >> /etc/systemd/system/gogs.service
|
||||
echo "Environment=\"USER=$GOGS_USERNAME\" \"HOME=/home/$GOGS_USERNAME\" \"GOPATH=$GOPATH\" \"GVM_ROOT=$GVM_HOME\"" >> /etc/systemd/system/gogs.service
|
||||
|
|
|
@ -108,6 +108,12 @@ function ssh_remove_small_moduli {
|
|||
}
|
||||
|
||||
function configure_ssh_client {
|
||||
if [ -f /usr/bin/pacman ]; then
|
||||
sudo pacman -S proxytunnel
|
||||
else
|
||||
sudo apt-get -y install tor connect-proxy
|
||||
fi
|
||||
|
||||
#sudo sed -i 's/# PasswordAuthentication.*/ PasswordAuthentication no/g' /etc/ssh/ssh_config
|
||||
#sudo sed -i 's/# ChallengeResponseAuthentication.*/ ChallengeResponseAuthentication no/g' /etc/ssh/ssh_config
|
||||
sudo sed -i "s/# HostKeyAlgorithms.*/ HostKeyAlgorithms $SSH_HOST_KEY_ALGORITHMS/g" /etc/ssh/ssh_config
|
||||
|
@ -180,7 +186,7 @@ function configure_monkeysphere {
|
|||
if [ -f /usr/bin/pacman ]; then
|
||||
return
|
||||
fi
|
||||
sudo apt-get -y install tor connect-proxy monkeysphere
|
||||
sudo apt-get -y install monkeysphere
|
||||
}
|
||||
|
||||
function show_help {
|
||||
|
|
Loading…
Reference in New Issue