Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packaging/common/cfengine-hub/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,10 @@ chown $MP_APACHE_USER:$MP_APACHE_USER -R $PREFIX/httpd/htdocs/ldap
chmod 0700 -R $PREFIX/httpd/htdocs/ldap/config

# changed permissions and owner of PHP and JS dependencies
chown root:$MP_APACHE_USER -R $PREFIX/httpd/htdocs/vendor
chmod -R ug=rX,o= $PREFIX/httpd/htdocs/vendor # 440 for files, 550 for dirs
if [ -f $PREFIX/httpd/htdocs/vendor ]; then
chown root:$MP_APACHE_USER -R $PREFIX/httpd/htdocs/vendor
chmod -R ug=rX,o= $PREFIX/httpd/htdocs/vendor # 440 for files, 550 for dirs
fi

##
# Start Apache server (and php-fpm if present)
Expand All @@ -1023,7 +1025,7 @@ true "Provisioning CFE_ROBOT user in the system"
echo "INSERT INTO users (username, password, salt, roles)
VALUES ('CFE_ROBOT', 'SHA=$CFE_ROBOT_PW_HASH', '$CFE_ROBOT_PW_SALT', '{cf_remoteagent}')
ON CONFLICT (username, external)
DO UPDATE
DO UPDATE
SET password = 'SHA=$CFE_ROBOT_PW_HASH', salt = '$CFE_ROBOT_PW_SALT'" | "$PREFIX/bin/psql" cfsettings
)
true "Successfully provisioned CFE_ROBOT user"
Expand Down