Commit 45262674 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

fcuk!

parent 45692577
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,4 +11,4 @@ rsync -a /opt/ /home/openwrt/.ssh/ || die "Couldn't rsync user ssh settings"
chown -R openwrt:openwrt /home/openwrt/.ssh || die "Couldn't change ownership for user ssh settings"
chmod -R a-rwx,u+rwX /home/openwrt/.ssh || die "Couldn't change access rights for user ssh settings"

sudo -u openwrt -g openwrt -E -H sh /sync.sh
exec sudo -u openwrt -g openwrt -E -H sh -c 'exec sh /sync.sh' || die "Couldn't run sync sript as user"
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ if [ -n "$OPENWRT_GIT_URL" ]; then
        git reset --hard || die "Couldn't reset repo"
        git pull || die "Couldn't pull repo"

        ( LC_ALL=C.UTF-8 rsync -a --delete-after --exclude '*-opkg' -e "ssh -p ${OPENWRT_SSH_PORT:-22}" "${OPENWRT_SSH_HOST:-root@192.168.0.1}:/overlay/upper/" overlay/ | grep -v 'skipping' ) || die "Couldn't rsync config"
        LC_ALL=C.UTF-8 rsync -vax --delete-after --exclude '*-opkg' --exclude 'etc/uci-defaults/*' -e "ssh -p ${OPENWRT_SSH_PORT:-22}" "${OPENWRT_SSH_HOST:-root@192.168.0.1}:/overlay/upper/" overlay/ || die "Couldn't rsync config"
        git add -A || die "Couldn't add files"

        if [ -n "$(git status -su)" ]; then