summarylogtreecommitdiffstats
path: root/openbazaar.install
diff options
context:
space:
mode:
authorM0Rf302015-12-29 12:38:20 +0100
committerM0Rf302015-12-29 12:38:20 +0100
commit1cd9eea224d6fb71e39bab4f3fe01d76920b3cc9 (patch)
tree97ffff8838bafc5d146e190107bdc84ece5139b8 /openbazaar.install
parent2f899a259c78829a4b40edb04fc370658df67949 (diff)
downloadaur-1cd9eea224d6fb71e39bab4f3fe01d76920b3cc9.tar.gz
updated
Diffstat (limited to 'openbazaar.install')
-rw-r--r--openbazaar.install44
1 files changed, 4 insertions, 40 deletions
diff --git a/openbazaar.install b/openbazaar.install
index 191529222ec..159de68ac1b 100644
--- a/openbazaar.install
+++ b/openbazaar.install
@@ -1,48 +1,12 @@
-usr=openbazaar
-home=/var/lib/openbazaar
-log=/var/lib/openbazaar/logs
-dbdata=obdata
-
post_install() {
- _mkuser
- _mkdbfolder
- _chown
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
+
post_upgrade() {
- _mkuser
- _chown
+ post_install $1
}
-## arg 1: the old package version
post_remove() {
- #_rmuser
- echo "Please remove $home and user $usr manually"
- echo "WARNING!!!"
- echo "Be sure to save your db and gpg backup"
-}
-
-_chown() {
- chown -R $usr:$usr $home $log $home/$dbdata
-}
-
-_mkuser() {
- getent passwd $usr &>/dev/null || {
- echo -n "Creating openbazaar user... "
- grep -E "^openbazaar:" /etc/group >/dev/null || groupadd $usr
- useradd -m -d $home -g $usr -s /usr/bin/nologin $usr 2>/dev/null
- echo "done"
- }
-}
-
-_rmuser() {
- echo -n "Removing openbazaar user... "
- userdel -rf $usr 2>/dev/null
- echo "done"
-}
-
-_mkdbfolder() {
- echo -n "Creating database folder... "
- mkdir -p $home/$dbdata
- echo "done"
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}