Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lionel Ferrafiat
RIE-2017-ProjetTutore-G1
Commits
1f37188b
Commit
1f37188b
authored
Dec 17, 2018
by
Lionel Ferrafiat
Browse files
Update cleanUpload.sh pour repertoire non vide
parent
328d3fd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteWeb/Scripts/cleanUpload.sh
View file @
1f37188b
...
...
@@ -7,5 +7,8 @@
# le script se lance par crontab depuis home #
####################################################
# marche si repertoire vide
#find /var/www/html/Upload/ -type d -mtime +7 -delete;
find /var/www/html/Upload/
-type
d
-mtime
+7
-delete
;
#marche avec repertoire non vide
find /var/www/html/Upload/
-type
d
-mtime
+7
-exec
rm
-rv
{}
+
;
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