From a149713993a531bcfb213a8248f096c633319e59 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Sat, 13 Sep 2014 01:18:40 +0200 Subject: [PATCH] Revert to using /bin/sh instead of /bin/bash to improve compatibility with embedded systems such as Synology Diskstation --- server/usr/bin/rs-rotate | 2 +- server/usr/bin/rs-run-ssh-cmd | 2 +- server/usr/sbin/rs-add-ssh-key | 2 +- server/usr/sbin/rs-add-user | 2 +- server/usr/sbin/rs-rotate-cron | 2 +- server/usr/sbin/rs-update-passwd | 2 +- server/usr/sbin/spin-down-storage | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server/usr/bin/rs-rotate b/server/usr/bin/rs-rotate index e47a35d..53f18dc 100755 --- a/server/usr/bin/rs-rotate +++ b/server/usr/bin/rs-rotate @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if [ "$1" == "" ]; then echo "Usage: $(basename $0) " diff --git a/server/usr/bin/rs-run-ssh-cmd b/server/usr/bin/rs-run-ssh-cmd index 193af31..73dba13 100755 --- a/server/usr/bin/rs-run-ssh-cmd +++ b/server/usr/bin/rs-run-ssh-cmd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh home_dir=$1 diff --git a/server/usr/sbin/rs-add-ssh-key b/server/usr/sbin/rs-add-ssh-key index 1a3d0e5..73431e1 100755 --- a/server/usr/sbin/rs-add-ssh-key +++ b/server/usr/sbin/rs-add-ssh-key @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh ## # rs-add-ssh-key # Copyright (C) 2013 by Janek Bevendorff diff --git a/server/usr/sbin/rs-add-user b/server/usr/sbin/rs-add-user index 8352d3e..8f32818 100755 --- a/server/usr/sbin/rs-add-user +++ b/server/usr/sbin/rs-add-user @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh ## # rs-add-user # Copyright (C) 2013 by Janek Bevendorff diff --git a/server/usr/sbin/rs-rotate-cron b/server/usr/sbin/rs-rotate-cron index 2613f05..0a196b3 100755 --- a/server/usr/sbin/rs-rotate-cron +++ b/server/usr/sbin/rs-rotate-cron @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Create daily, weekly or monthly snapshots from manual push backups if [ "$1" == "" ]; then diff --git a/server/usr/sbin/rs-update-passwd b/server/usr/sbin/rs-update-passwd index 4b25c81..7f86824 100755 --- a/server/usr/sbin/rs-update-passwd +++ b/server/usr/sbin/rs-update-passwd @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh . /etc/rs-backup/server-config diff --git a/server/usr/sbin/spin-down-storage b/server/usr/sbin/spin-down-storage index a19706c..cff518c 100755 --- a/server/usr/sbin/spin-down-storage +++ b/server/usr/sbin/spin-down-storage @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Check if disk has been used since last check and spin it down if not if [ "${1}" == "" ]; then