Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
11899c99
Commit
11899c99
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Set command file permissions
parent
8e993372
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/freedombone-utils-final
+1
-0
1 addition, 0 deletions
src/freedombone-utils-final
src/freedombone-utils-selector
+6
-0
6 additions, 0 deletions
src/freedombone-utils-selector
src/freedombone-utils-setup
+21
-0
21 additions, 0 deletions
src/freedombone-utils-setup
with
28 additions
and
0 deletions
src/freedombone-utils-final
+
1
−
0
View file @
11899c99
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-selector
+
6
−
0
View file @
11899c99
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-setup
+
21
−
0
View file @
11899c99
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment