Set command file permissions
This commit is contained in:
parent
8e9933725d
commit
11899c9904
|
@ -39,6 +39,7 @@ function install_final {
|
|||
fi
|
||||
function_check split_gpg_key_into_fragments
|
||||
split_gpg_key_into_fragments
|
||||
set_command_file_permissions
|
||||
|
||||
mark_completed $FUNCNAME
|
||||
clear
|
||||
|
|
|
@ -570,6 +570,9 @@ function install_apps {
|
|||
|
||||
${PROJECT_NAME}-mirrors --app ${a}
|
||||
|
||||
function_check set_command_file_permissions
|
||||
set_command_file_permissions
|
||||
|
||||
function_check install_completed
|
||||
install_completed ${a}
|
||||
echo $"${a} was installed from interactive"
|
||||
|
@ -599,6 +602,9 @@ function install_apps {
|
|||
function_check add_users_after_install
|
||||
add_users_after_install ${a}
|
||||
|
||||
function_check set_command_file_permissions
|
||||
set_command_file_permissions
|
||||
|
||||
${PROJECT_NAME}-mirrors --app ${a}
|
||||
|
||||
function_check install_completed
|
||||
|
|
|
@ -416,6 +416,27 @@ function remove_serial_logins {
|
|||
fi
|
||||
}
|
||||
|
||||
function set_command_file_permissions {
|
||||
if [ -d /bin ]; then
|
||||
chown root:root /bin/*
|
||||
fi
|
||||
if [ -d /usr/bin ]; then
|
||||
chown root:root /usr/bin/*
|
||||
fi
|
||||
if [ -d /usr/local/bin ]; then
|
||||
chown root:root /usr/local/bin/*
|
||||
fi
|
||||
if [ -d /sbin ]; then
|
||||
chown root:root /sbin/*
|
||||
fi
|
||||
if [ -d /usr/sbin ]; then
|
||||
chown root:root /usr/sbin/*
|
||||
fi
|
||||
if [ -d /usr/local/sbin ]; then
|
||||
chown root:root /usr/local/sbin/*
|
||||
fi
|
||||
}
|
||||
|
||||
function setup_firewall {
|
||||
function_check create_completion_file
|
||||
create_completion_file
|
||||
|
|
Loading…
Reference in New Issue