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
75b430fb
Commit
75b430fb
authored
Nov 18, 2020
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actually, flock all the scripts
Signed-off-by:
Mattia Rizzolo
<
mapreri@ubuntu.com
>
parent
925b5e5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
cron.sh
cron.sh
+1
-4
utils/flock.sh
utils/flock.sh
+5
-0
utils/include.sh
utils/include.sh
+2
-0
No files found.
cron.sh
View file @
75b430fb
...
@@ -2,11 +2,8 @@
...
@@ -2,11 +2,8 @@
set
-euo
pipefail
set
-euo
pipefail
# run only one verion of myself
# shellcheck disable=2015
[
"
${
FLOCKER
:-}
"
!=
"
$0
"
]
&&
exec env
FLOCKER
=
"
$0
"
flock
-E
0
-en
"
$0
"
"
$0
"
"
$@
"
||
:
base
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
base
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
.
"
$base
"
/utils/flock.sh
# Allow this script to be run only by ubuntu-it
# Allow this script to be run only by ubuntu-it
if
[[
"
$(
whoami
)
"
!=
"ubuntu-it"
]]
;
then
if
[[
"
$(
whoami
)
"
!=
"ubuntu-it"
]]
;
then
...
...
utils/flock.sh
0 → 100644
View file @
75b430fb
#!/bin/sh
# run only one verion of myself
# shellcheck disable=2015
echo
"
$0
"
[
"
${
FLOCKER
:-}
"
!=
"
$0
"
]
&&
exec env
FLOCKER
=
"
$0
"
flock
-E
0
-en
"
$0
"
"
$0
"
"
$@
"
||
:
utils/include.sh
View file @
75b430fb
...
@@ -17,6 +17,8 @@ base="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )"
...
@@ -17,6 +17,8 @@ base="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )"
# Include all the utilities from the subfiles
# Include all the utilities from the subfiles
# shellcheck disable=1090
# shellcheck disable=1090
.
"
${
base
}
/flock.sh"
# prevent this script from running twice together
# shellcheck disable=1090
.
"
${
base
}
/bzr.sh"
.
"
${
base
}
/bzr.sh"
# shellcheck disable=1090
# shellcheck disable=1090
.
"
${
base
}
/git.sh"
.
"
${
base
}
/git.sh"
...
...
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