Skip to content
Snippets Groups Projects
Commit 11899c99 authored by Bob Mottram's avatar Bob Mottram
Browse files

Set command file permissions

parent 8e993372
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment