Sign in

简柏林 / thingskit · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • thingskit
  • ..
  • rpm
  • prerm
  • Initial commit
    c22bf33d
    Andrew Shvayka authored
    2016-12-01 11:38:15 +0200  
    Browse Files »
prerm 162 Bytes
Raw Blame History Permalink
1 2 3 4 5 6
#!/bin/sh

if [ $1 -eq 0 ] ; then
        # Package removal, not upgrade
        systemctl --no-reload disable --now ${pkg.name}.service > /dev/null 2>&1 || :
fi