use correct quotes
This commit is contained in:
parent
f2be3e63b3
commit
4afa67fc03
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
echo "deploy-script.sh: Error - Must supply script as argument"
|
||||
echo 'deploy-script.sh: Error - Must supply script as argument'
|
||||
exit
|
||||
else
|
||||
_script="$1"
|
||||
|
@ -9,7 +9,7 @@ fi
|
|||
|
||||
. ./config.sh
|
||||
|
||||
cat config.sh "$_script" | ssh root@"$_url" "cat >/tmp/deploy-script.sh"
|
||||
cat config.sh "$_script" | ssh root@"$_url" 'cat >/tmp/deploy-script.sh'
|
||||
ssh root@"$_url" '/bin/bash /tmp/deploy-script.sh'
|
||||
ssh root@"$_url" '/bin/bash -c "rm /tmp/deploy-script.sh"'
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ $_cmd_su "echo '/themes/' >> $_site_path/.gitignore"
|
|||
$_cmd_su "echo 'node_modules/' >> $_site_path/.gitignore"
|
||||
$_cmd_su "cd $_site_path && git add . && git commit -m 'initial commit'"
|
||||
|
||||
echo "#!/bin/sh" > "$_serve_script_path"
|
||||
echo '#!/bin/sh' > "$_serve_script_path"
|
||||
echo 'echo "sudo required to bind to port 80"' >> "$_serve_script_path"
|
||||
echo "sudo hugo server -D --bind=0.0.0.0 --baseURL=http://$_url -p80" >> "$_serve_script_path"
|
||||
chown "$_user": "$_serve_script_path"
|
||||
|
@ -62,9 +62,9 @@ else
|
|||
_theme_path='No theme installed'
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "#################################################################################################"
|
||||
echo ""
|
||||
echo ''
|
||||
echo '#################################################################################################'
|
||||
echo ''
|
||||
tee $_site_path/README.txt << EOF
|
||||
Site directory: $_site_path
|
||||
Theme directory: $_theme_path
|
||||
|
@ -75,7 +75,7 @@ Build script: $_build_script_path
|
|||
Server script: $_serve_script_path
|
||||
Server URL: http://$_url
|
||||
EOF
|
||||
echo ""
|
||||
echo "#################################################################################################"
|
||||
echo ""
|
||||
echo ''
|
||||
echo '#################################################################################################'
|
||||
echo ''
|
||||
chown "$_user": "$_site_path/README.txt"
|
||||
|
|
|
@ -5,7 +5,7 @@ set -e
|
|||
if command -v apt-get ; then
|
||||
apt-get -y install gnupg
|
||||
else
|
||||
echo "Error - no package installer found."
|
||||
echo 'Error - no package installer found.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -17,5 +17,5 @@ tar -xJvf node-"$_node_version"-"$_node_distro".tar.xz -C /usr/local/lib/nodejs
|
|||
echo "PATH=/usr/local/lib/nodejs/node-$_node_version-$_node_distro/bin:$PATH" >> /home/"$_user"/.profile
|
||||
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
echo 'deb https://dl.yarnpkg.com/debian/ stable main' | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
apt-get update && sudo apt-get -y install yarn
|
||||
|
|
|
@ -17,7 +17,7 @@ if command -v apt-get ; then
|
|||
mv /tmp/neovim/runtime /usr/local/share/nvim/runtime
|
||||
mv /tmp/neovim/build/bin/nvim /usr/local/bin/nvim
|
||||
else
|
||||
echo "Error - no package installer found."
|
||||
echo 'Error - no package installer found.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Reference in New Issue