diff options
author | Sam Whited | 2015-12-24 20:11:46 -0600 |
---|---|---|
committer | Sam Whited | 2015-12-24 21:11:07 -0600 |
commit | 843599519ea3c1f565136ae086d380dead97a04a (patch) | |
tree | 5ec76de05cb3a960ae785cf8624ded5e649d869d /atlassian-stash.install | |
download | aur-843599519ea3c1f565136ae086d380dead97a04a.tar.gz |
Initial atlassian-stash package
Diffstat (limited to 'atlassian-stash.install')
-rw-r--r-- | atlassian-stash.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/atlassian-stash.install b/atlassian-stash.install new file mode 100644 index 000000000000..46cbc0e64144 --- /dev/null +++ b/atlassian-stash.install @@ -0,0 +1,21 @@ +post_install() { + systemd-sysusers stash.conf + systemd-tmpfiles --create stash.conf + chown -R stash:stash /opt/atlassian-stash + chown -R stash:stash /etc/stash + chmod -R 750 /etc/stash + echo "==> " + echo "==> Bitbucket has finished installing." + echo "==> Visit https://confluence.atlassian.com/display/BitbucketServer/Install+Bitbucket+Server+from+an+archive+file for configuration instructions." + echo "==> " +} + +post_upgrade() { + post_install + echo "Restart Bitbucket to complete upgrade." +} + +pre_remove() { + getent passwd stash &>/dev/null && userdel stash &> /dev/null + getent group stash &>/dev/null && groupdel stash &> /dev/null +} |