Skip to content

Commit

Permalink
[#7] Change file ownership in postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerb committed Feb 3, 2016
1 parent 2509bb8 commit 72ab4a6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packaging/irods_auth_plugin_krb.list.template
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
# Install variables
# =-=-=-=-=-=-=-
$IRODS_HOME_DIR=/var/lib/irods
$OS_IRODS_ACCT=irods


# =-=-=-=-=-=-=-
Expand All @@ -48,6 +47,9 @@ END_PREINSTALL
# post install
# =-=-=-=-=-=-=-
%postinstall << END_POSTINSTALL
. /etc/irods/service_account.config 2> /dev/null
chown $$IRODS_SERVICE_ACCOUNT_NAME:$$IRODS_SERVICE_GROUP_NAME ${IRODS_HOME_DIR}/plugins/auth/libkrb.so
chown $$IRODS_SERVICE_ACCOUNT_NAME:$$IRODS_SERVICE_GROUP_NAME ${IRODS_HOME_DIR}/tests/pydevtest/test_irods_auth_plugin_krb.py
END_POSTINSTALL

# =-=-=-=-=-=-=-
Expand Down Expand Up @@ -89,5 +91,5 @@ END_POSTREMOVE
# =-=-=-=-=-=-=-
# Full File Listing
# =-=-=-=-=-=-=-
f 644 $OS_IRODS_ACCT $OS_IRODS_ACCT ${IRODS_HOME_DIR}/plugins/auth/libkrb.so ./libkrb.so
f 644 $OS_IRODS_ACCT $OS_IRODS_ACCT ${IRODS_HOME_DIR}/tests/pydevtest/test_irods_auth_plugin_krb.py ./packaging/test_irods_auth_plugin_krb.py
f 644 root root ${IRODS_HOME_DIR}/plugins/auth/libkrb.so ./libkrb.so
f 644 root root ${IRODS_HOME_DIR}/tests/pydevtest/test_irods_auth_plugin_krb.py ./packaging/test_irods_auth_plugin_krb.py

0 comments on commit 72ab4a6

Please sign in to comment.