mirror of
https://github.com/safing/portmaster
synced 2025-09-03 02:59:13 +00:00
[packaging] Add check if old install folder exists
This commit is contained in:
parent
93b9130a69
commit
9324c59f7b
1 changed files with 15 additions and 13 deletions
|
@ -15,6 +15,7 @@ fi
|
||||||
OLD_INSTALLATION_DIR="/opt/safing/portmaster"
|
OLD_INSTALLATION_DIR="/opt/safing/portmaster"
|
||||||
MIGRATED_FILE_FLAG="$OLD_INSTALLATION_DIR/migrated.txt"
|
MIGRATED_FILE_FLAG="$OLD_INSTALLATION_DIR/migrated.txt"
|
||||||
|
|
||||||
|
if [ -d "$OLD_INSTALLATION_DIR" ]; then
|
||||||
if [ ! -e "$MIGRATED_FILE_FLAG" ]; then
|
if [ ! -e "$MIGRATED_FILE_FLAG" ]; then
|
||||||
echo "Starting migration form v1"
|
echo "Starting migration form v1"
|
||||||
|
|
||||||
|
@ -33,6 +34,7 @@ if [ ! -e "$MIGRATED_FILE_FLAG" ]; then
|
||||||
touch $MIGRATED_FILE_FLAG
|
touch $MIGRATED_FILE_FLAG
|
||||||
echo "Migration complete"
|
echo "Migration complete"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
mv /usr/bin/portmaster /usr/lib/portmaster/portmaster
|
mv /usr/bin/portmaster /usr/lib/portmaster/portmaster
|
||||||
ln -s /usr/lib/portmaster/portmaster /usr/bin/portmaster
|
ln -s /usr/lib/portmaster/portmaster /usr/bin/portmaster
|
||||||
|
|
Loading…
Add table
Reference in a new issue