Ensure permissions on freedombone commands
This commit is contained in:
parent
9749cb43ce
commit
f6fd2111e7
|
@ -85,6 +85,10 @@ if [ -d $PROJECT_DIR ]; then
|
|||
git_pull $PROJECT_REPO origin/$DEVELOPMENT_BRANCH
|
||||
fi
|
||||
make install
|
||||
if [ -d /usr/share/${PROJECT_NAME} ]; then
|
||||
chown -R root:root /usr/share/${PROJECT_NAME}
|
||||
chmod -R +r /usr/share/${PROJECT_NAME}
|
||||
fi
|
||||
${PROJECT_NAME} -c $CONFIGURATION_FILE
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -435,7 +435,10 @@ function set_command_file_permissions {
|
|||
if [ -d /usr/local/sbin ]; then
|
||||
chown root:root /usr/local/sbin/*
|
||||
fi
|
||||
chmod 4755 /usr/bin/sudo
|
||||
if [ -d /usr/share/${PROJECT_NAME} ]; then
|
||||
chown -R root:root /usr/share/${PROJECT_NAME}
|
||||
chmod -R +r /usr/share/${PROJECT_NAME}
|
||||
fi
|
||||
|
||||
if [ -d /lib ]; then
|
||||
chown -R root:root /lib/*
|
||||
|
@ -449,6 +452,10 @@ function set_command_file_permissions {
|
|||
if [ -d /usr/lib64 ]; then
|
||||
chown -R root:root /usr/lib64/*
|
||||
fi
|
||||
|
||||
chmod 4755 /usr/bin/sudo
|
||||
chmod 4755 /usr/lib/sudo/sudoers.so
|
||||
chown root:root /etc/sudoers
|
||||
}
|
||||
|
||||
function setup_firewall {
|
||||
|
|
Loading…
Reference in New Issue