Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deployer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Sistemisti
deployer
Commits
89a84840
Commit
89a84840
authored
Nov 18, 2020
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop unused function
Signed-off-by:
Mattia Rizzolo
<
mapreri@ubuntu.com
>
parent
60db2121
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
23 deletions
+2
-23
LICENSE
LICENSE
+2
-1
cron.sh
cron.sh
+0
-22
No files found.
LICENSE
View file @
89a84840
MIT License
MIT License
Copyright (c) 2017 Pietro Albini <pietro@pietroalbini.org>
Copyright (c) 2017 Pietro Albini <pietro@pietroalbini.org>
Copyright (c) 2019-2020 Mattia Rizzolo <mapreri@ubuntu.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and associated documentation files (the "Software"), to deal
...
...
cron.sh
View file @
89a84840
...
@@ -8,28 +8,6 @@ if [[ "$(whoami)" != "ubuntu-it" ]]; then
...
@@ -8,28 +8,6 @@ if [[ "$(whoami)" != "ubuntu-it" ]]; then
exit
1
exit
1
fi
fi
chronic_sh
(){
local
pipe pipe_q
pipe
=
$(
mktemp
-p
"
${
TMPDIR
:-
/tmp
}
"
chronic_sh.XXXXXXXXXX
)
printf
-v
pipe_q
'%q'
"
$pipe
"
trap
'rm -fv '
"
$pipe_q
"
RETURN
# one can't open a reading fd and a writing fd without blocking, because
# they want to already have something on the other side of the pipe.
# the temporary fd 5 will be that something.
exec
5<
>
"
$pipe
"
# hack
exec
3>
"
$pipe
"
# writing fd
exec
4<
"
$pipe
"
# reading fd
exec
5>&-
# end hack
rm
"
$pipe
"
local
ret
=
0
"
$@
"
>
&3 2>&3
||
ret
=
$?
if
[
"
$ret
"
-ne
0
]
;
then
exec
3>&-
cat
<&4-
return
$ret
fi
}
# Try to deploy all the websites
# Try to deploy all the websites
for
script
in
"
${
base
}
/scripts/"
*
;
do
for
script
in
"
${
base
}
/scripts/"
*
;
do
...
...
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