diff options
Diffstat (limited to 'source/a/pkgtools/scripts')
-rw-r--r-- | source/a/pkgtools/scripts/installpkg | 2 | ||||
-rw-r--r-- | source/a/pkgtools/scripts/makebootdisk | 1 | ||||
-rw-r--r-- | source/a/pkgtools/scripts/removepkg | 1 | ||||
-rw-r--r-- | source/a/pkgtools/scripts/upgradepkg | 3 |
4 files changed, 1 insertions, 6 deletions
diff --git a/source/a/pkgtools/scripts/installpkg b/source/a/pkgtools/scripts/installpkg index 16e2e47e..b777442a 100644 --- a/source/a/pkgtools/scripts/installpkg +++ b/source/a/pkgtools/scripts/installpkg @@ -258,7 +258,6 @@ ADM_DIR="$ROOT/var/log" # If the directories don't exist, "initialize" the package database: for PKGDBDIR in packages removed_packages removed_scripts scripts setup ; do if [ ! -d $ADM_DIR/$PKGDBDIR ]; then - rm -rf $ADM_DIR/$PKGDBDIR # make sure it's not a symlink or something stupid mkdir -p $ADM_DIR/$PKGDBDIR chmod 755 $ADM_DIR/$PKGDBDIR fi @@ -268,7 +267,6 @@ done TMP=$ADM_DIR/setup/tmp # If the $TMP directory doesn't exist, create it: if [ ! -d $TMP ]; then - rm -rf $TMP # make sure it's not a symlink or something stupid mkdir -p $TMP chmod 700 $TMP # no need to leave it open fi diff --git a/source/a/pkgtools/scripts/makebootdisk b/source/a/pkgtools/scripts/makebootdisk index 93ccc5a9..e1c3cfb6 100644 --- a/source/a/pkgtools/scripts/makebootdisk +++ b/source/a/pkgtools/scripts/makebootdisk @@ -37,7 +37,6 @@ fi TMP=/var/log/setup/tmp # If the $TMP directory doesn't exist, create it: if [ ! -d $TMP ]; then - rm -rf $TMP # make sure it's not a symlink or something stupid mkdir -p $TMP chmod 700 $TMP # no need to leave it open fi diff --git a/source/a/pkgtools/scripts/removepkg b/source/a/pkgtools/scripts/removepkg index 81b2a6be..6312353a 100644 --- a/source/a/pkgtools/scripts/removepkg +++ b/source/a/pkgtools/scripts/removepkg @@ -137,7 +137,6 @@ export LC_ALL=C TMP=$ROOT/var/log/setup/tmp # If the $TMP directory doesn't exist, create it: if [ ! -d $TMP ]; then - rm -rf $TMP # make sure it's not a symlink or something stupid mkdir -p $TMP chmod 700 $TMP # no need to leave it open fi diff --git a/source/a/pkgtools/scripts/upgradepkg b/source/a/pkgtools/scripts/upgradepkg index 500a970a..3ee3c658 100644 --- a/source/a/pkgtools/scripts/upgradepkg +++ b/source/a/pkgtools/scripts/upgradepkg @@ -87,8 +87,7 @@ EOF TMP=$ROOT/var/log/setup/tmp # If the $TMP directory doesn't exist, create it: if [ ! -d $TMP ]; then - rm -rf $TMP # make sure it's not a symlink or something stupid - mkdir $TMP + mkdir -p $TMP chmod 700 $TMP # no need to leave it open fi |