Commit 98a42161 authored by Stephane Crozat's avatar Stephane Crozat
Browse files

Fixing bug for ssh push (bad /*)

parent 8eead193
...@@ -19,7 +19,7 @@ chmod 770 /home/apisub/backup ...@@ -19,7 +19,7 @@ chmod 770 /home/apisub/backup
cp sh/ /usr/bin cp sh/ /usr/bin
chown postgres:postgres /usr/bin/ chown postgres:postgres /usr/bin/
cp sh/ /usr/bin cp sh/ /usr/bin
chown apisub:apisub /usr/bin/ chown apisub:apisub /usr/bin/
crontab -e -u postgres crontab -e -u postgres
crontab -e -u apisub crontab -e -u apisub
...@@ -6,4 +6,4 @@ dest='/media/pi/MY3T-STPH/apisub' ...@@ -6,4 +6,4 @@ dest='/media/pi/MY3T-STPH/apisub'
user='apisub' user='apisub'
host='' host=''
echo "rsync $src $user@$host:$dest" echo "rsync $src $user@$host:$dest"
rsync $src/* $user@$host:/$dest rsync $src $user@$host:/$dest
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment