library/roles/smartgears/smartgears_egi_image/templates/smartgears-setup.sh.j2: Fix a mistake in the function that sets the container.xml permissions. It screwed the home directory ones.

This commit is contained in:
Andrea Dell'Amico 2017-06-01 13:19:53 +02:00
parent 09c9663ae5
commit 47c3755c0a
1 changed files with 7 additions and 7 deletions

View File

@ -177,19 +177,19 @@ function get_smartgears_scope_tokens() {
} }
function fix_containerxml_perms() { function fix_containerxml_perms() {
chown -R gcube:gcube chown -R gcube:gcube ${SM_DOT_CONF_D}
chmod 640 ${SM_DOT_CONF_D}/.* chmod 640 ${SM_DOT_CONF_D}/.*
chown gcube:gcube $SM_CONF_DEST_F chown gcube:gcube $SM_CONF_DEST_F
chmod 640 $SM_CONF_DEST_F chmod 640 $SM_CONF_DEST_F
} }
function merge_container_xml() { # function merge_container_xml() {
echo "-- merge_container_xml: compose the file" >> $LOG_FILE # echo "-- merge_container_xml: compose the file" >> $LOG_FILE
cat $SM_CONF_F $SM_CONF_TOKENS_F $SM_CONF_TAIL_F > $SM_CONF_DEST_F # cat $SM_CONF_F $SM_CONF_TOKENS_F $SM_CONF_TAIL_F > $SM_CONF_DEST_F
chown gcube:gcube $SM_CONF_DEST_F # chown gcube:gcube $SM_CONF_DEST_F
chmod 640 $SM_CONF_DEST_F # chmod 640 $SM_CONF_DEST_F
} # }
function get_gcube_keys() { function get_gcube_keys() {
echo "-- get_gcube_keys" >> $LOG_FILE echo "-- get_gcube_keys" >> $LOG_FILE