Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothy Frew
Sympl
Commits
ef7de9aa
Commit
ef7de9aa
authored
Apr 27, 2020
by
Paul Cammish
Browse files
Fix install case where directory doesnt exist
parent
415730ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/sbin/sympl-filesystem-security
View file @
ef7de9aa
...
...
@@ -156,10 +156,12 @@ if [ -d /etc/sympl ]; then
\(
-type
f
!
-perm
664
$VERBOSE
-exec
chmod
664
{}
\;
\
-o
-type
d
!
-perm
775
$VERBOSE
-exec
chmod
775
{}
\;
\)
# Make sure theres at least something executable in the backup pre/post scripts
if
[
$(
find
"/etc/sympl/backup.d/"
-type
f
\(
-path
'*/backup.d/post-backup.d/*'
-o
-path
'*/backup.d/pre-backup.d/*'
\)
-name
'*-*'
-executable
|
wc
-l
)
==
0
]
;
then
chmod
+x /etc/sympl/backup.d/post-backup.d/
*
chmod
+x /etc/sympl/backup.d/pre-backup.d/
*
if
[
-d
/etc/sympl/backup.d/post-backup.d
]
||
[
-d
/etc/sympl/backup.d/pre-backup.d
]
;
then
# Make sure theres at least something executable in the backup pre/post scripts
if
[
$(
find
"/etc/sympl/backup.d/"
-type
f
\(
-path
'*/backup.d/post-backup.d/*'
-o
-path
'*/backup.d/pre-backup.d/*'
\)
-name
'*-*'
-executable
|
wc
-l
)
==
0
]
;
then
chmod
+x /etc/sympl/backup.d/post-backup.d/
*
2&> /dev/null
||
true
chmod
+x /etc/sympl/backup.d/pre-backup.d/
*
2&> /dev/null
||
true
fi
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment