cant remember?
[php-bacula-disk-changer.git] / install.sh
index be54318..da6d193 100644 (file)
@@ -5,7 +5,7 @@ read -p "Bacula User ID [bacula]:" user_id
 
 if [ "x$install_base" == "x" ]
 then
-       install_base="/opt/pdbc"
+       install_base="/opt/pbdc"
 fi
 
 if [ "x$user_id" == "x" ]
@@ -19,6 +19,7 @@ mkdir -p $install_base/db
 
 export install_base user_id
 
+rm -f /etc/pbdc.conf
 cat >> /etc/pbdc.conf << EOF
 BASE_DIR=$install_base
 BASE_LIB=$install_base/lib/
@@ -30,4 +31,5 @@ EOF
 
 cp -rp bin/* $install_base/bin
 cp -rp lib/* $install_base/lib
-chown -R $install_base
\ No newline at end of file
+chown -R $user_id $install_base
+chmod 755 $install_base/bin/*
\ No newline at end of file