Commit c05d69d1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play/repack portmaster: warn about v1 deprecation and fix data dir creation

Add warning suggesting epm play portmaster2 (v2 is the maintained version). Create $BUILDROOT$DATADIR with mkdir -p before portmaster-start update so it can initialize the data root in the buildroot.
parent fd9bb4f6
......@@ -8,6 +8,8 @@ URL="https://safing.io/"
. $(dirname $0)/common.sh
warning 'Portmaster v1 is no longer maintained upstream. Consider using $ epm play portmaster2 to install v2.'
warn_version_is_not_supported
pkgtype="$(epm print info -p)"
......
......@@ -28,6 +28,7 @@ subst "s|PIDFile=/opt/safing/portmaster|PIDFile=$DATADIR|" $BUILDROOT/lib/system
# download components at repack time
echo "Downloading components ..."
mkdir -p $BUILDROOT$DATADIR
.$PRODUCTDIR/portmaster-start --data $BUILDROOT$DATADIR update || fatal
p="$(basename $(dirname $BUILDROOT$DATADIR/updates/linux_amd64/app/portmaster-app_v*/chrome-sandbox))"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment