Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #169 from Stratio/fix/decision_permissions
Browse files Browse the repository at this point in the history
[DECISION-277] fix scripts
  • Loading branch information
josepablofernandez committed Apr 7, 2016
2 parents 0bb034c + 8343f16 commit 00563f0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 0 additions & 6 deletions engine/src/main/unix/files_and_dirs/etc/default/decision

This file was deleted.

3 changes: 2 additions & 1 deletion engine/src/main/unix/scripts/post
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ chown -R ${USER}:${GROUP} $DIR_LOG

chmod 755 /etc/init.d/decision
chmod 755 /opt/sds/decision/bin/run
chmod 644 /etc/default/decision
chmod 644 /etc/default/decision-functions
chmod 644 /etc/default/decision-variables

sed -i 's!"$BASEDIR"/:/etc/sds/decision/conf!/etc/sds/decision!g' /opt/sds/decision/bin/run

Expand Down
13 changes: 13 additions & 0 deletions engine/src/main/unix/scripts/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ case "$1" in
chmod 644 /etc/default/decision-functions
chmod 644 /etc/default/decision-variables


chown root:${GROUP} /etc/sds 2>/dev/null
chmod 775 /etc/sds 2>/dev/null

chown root:${GROUP} /var/log/sds 2>/dev/null
chmod 775 /var/log/sds 2>/dev/null

chown root:${GROUP} /var/run/sds 2>/dev/null
chmod 775 /var/run/sds 2>/dev/null

chown root:${GROUP} /opt/sds 2>/dev/null
chmod 775 /opt/sds 2>/dev/null

sed -i 's!"$BASEDIR"/:/etc/sds/decision/conf!/etc/sds/decision!g' /opt/sds/decision/bin/run

update-rc.d decision defaults
Expand Down
1 change: 0 additions & 1 deletion engine/src/main/unix/scripts/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ case "$1" in

esac


exit 0

0 comments on commit 00563f0

Please sign in to comment.