diff --git a/agent/detect-unix.sh b/agent/detect-unix.sh index 948df5b..e299d87 100755 --- a/agent/detect-unix.sh +++ b/agent/detect-unix.sh @@ -11,11 +11,11 @@ if [ "${OS}" = "SunOS" ] ; then elif [ "${OS}" = "AIX" ] ; then OSSTR="${OS} $(oslevel) ($(oslevel -r))" elif [ "${OS}" = "Linux" ] ; then - KERNEL=$(uname -r) + #KERNEL=$(uname -r) if [ -f /etc/redhat-release ] ; then DIST="$(cat /etc/redhat-release)" elif [ -f /etc/SuSE-release ] ; then - DIST=$(tr "\n" ' ' < /etc/SuSE-release | sed s/VERSION.*//) + DIST=$(tr "\\n" ' ' < /etc/SuSE-release | sed s/VERSION.*//) elif [ -f /etc/debian_version ] ; then DIST="Debian $(cat /etc/debian_version)" elif [ -f /etc/slackware-version ] ; then diff --git a/agent/pkgctl.sh b/agent/pkgctl.sh index 7d37a77..bf1a7bf 100755 --- a/agent/pkgctl.sh +++ b/agent/pkgctl.sh @@ -1,6 +1,6 @@ #!/bin/bash -OS=`sh detect-unix.sh` +OS=$(sh detect-unix.sh) # Determine task #case $1 in @@ -24,4 +24,4 @@ esac #if [ "$OS" = "Arch Linux" ] ; then # PM="pacman" #fi -echo $PM \ No newline at end of file +echo $PM diff --git a/runme.sh b/runme.sh index 06cad4f..18b0027 100755 --- a/runme.sh +++ b/runme.sh @@ -1 +1,2 @@ -./rmpsd start --daemonize=no \ No newline at end of file +#!/bin/bash +./rmpsd start --daemonize=no diff --git a/scripts/init_rmps_db.sh b/scripts/init_rmps_db.sh index 99dcd59..543f7e3 100755 --- a/scripts/init_rmps_db.sh +++ b/scripts/init_rmps_db.sh @@ -2,13 +2,13 @@ printf "Password for 'rmps' DB user: " read -rs dbpass -printf "\nEnter the first RMPS username: " +printf "\\nEnter the first RMPS username: " read -r username printf "Full name for the new user '%s': " "${username}" read -r fullname printf "Password for RMPS user '%s': " "${username}" read -rs newuser_pass -printf "\nEnter e-mail for the new user: " +printf "\\nEnter e-mail for the new user: " read -r email printf "Initializing DB... " salt=$(head -c 32 /dev/urandom|sha1sum|head -c 32) @@ -24,4 +24,4 @@ mysql -u rmps --password="$dbpass" -e "\ set @passHash=\"$pass_hash\";\ set @passSalt=\"$salt\";\ $(cat init_rmps_db.sql)" -printf "Done!\n" +printf "Done!\\n"