aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Miller2017-10-11 16:01:54 -0700
committerAaron Miller2017-10-11 16:01:54 -0700
commitd07eb9305118a44e89e3f9de3cb2561a5dc73e73 (patch)
tree206a2f8d1d2aad97ae41a121725374ebd109c4c5
parent7fdd5b6146d424e4105e87145a4de10f9dad0cb4 (diff)
downloadaur-d07eb9305118a44e89e3f9de3cb2561a5dc73e73.tar.gz
use systemd start/stop
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 9 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0b2630d808a2..5cc5356c85cf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = crashplan-pro
pkgdesc = An business online/offsite backup solution
pkgver = 4.9.0
- pkgrel = 2
+ pkgrel = 3
url = http://www.crashplan.com/business
install = crashplan-pro.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index a412b12d9559..22d6003e93e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
# Contributor: Bill Durr <billyburly [at] gmail [dot] com>
pkgname=crashplan-pro
pkgver=4.9.0
-pkgrel=2
+pkgrel=3
pkgdesc="An business online/offsite backup solution"
url="http://www.crashplan.com/business"
arch=('i686' 'x86_64')
@@ -70,10 +70,16 @@ package() {
echo "" >> $srcdir/crashplan-install/scripts/run.conf
echo "export LC_ALL=$LANG" >> $srcdir/crashplan-install/scripts/run.conf
+ # Use systemctl start/stop commands when it attempts to auto-update
+ sed -i 's/^$ENGINE_SCRIPT stop.*/systemctl stop crashplan-pro >> $logfile 2>\&1/g' "$pkgdir/opt/${pkgname}/bin/restartLinux.sh"
+ sed -i 's/^$ENGINE_SCRIPT start.*/systemctl start crashplan-pro >> $logfile 2>\&1/g' "$pkgdir/opt/${pkgname}/bin/restartLinux.sh"
+
install -D -m 644 $srcdir/crashplan-install/install.vars $pkgdir/opt/$pkgname/install.vars
-#Removed as of Version 4.8.0 as the EULA is no longer included in the source
+
+ #Removed as of Version 4.8.0 as the EULA is no longer included in the source
#install -D -m 644 $srcdir/crashplan-install/EULA.txt $pkgdir/opt/$pkgname/EULA.txt
#install -D -m 644 $srcdir/crashplan-install/EULA.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
install -D -m 755 $srcdir/crashplan-install/scripts/CrashPlanDesktop $pkgdir/opt/$pkgname/bin/CrashPlanDesktop
install -D -m 644 $srcdir/crashplan-install/scripts/run.conf $pkgdir/opt/$pkgname/bin/run.conf
install -D -m 755 $srcdir/crashplan-install/scripts/CrashPlanEngine $pkgdir/opt/$pkgname/bin/CrashPlanEngine