Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
webhosting
Commits
d670f948
Commit
d670f948
authored
Mar 23, 2020
by
mh
Browse files
fix detecting new repo location
parent
adc61ed2
Changes
1
Show whitespace changes
Inline
Side-by-side
files/update_scripts/update_smfs_webhostings.sh
View file @
d670f948
...
...
@@ -11,7 +11,7 @@ if [ $1 = 'all' ]; then
for
i
in
$(
ls
$basedir
/
*
/www/SSI.php
)
;
do
wwwdir
=
$(
dirname
$i
)
if
[
-d
"
${
wwwdir
}
/.git"
]
;
then
git
--git-dir
=
${
wwwdir
}
/.git remote
-v
|
grep
'(fetch)'
|
awk
'{ print $2 }'
|
grep
-q
'
i
smf.git'
git
--git-dir
=
${
wwwdir
}
/.git remote
-v
|
grep
'(fetch)'
|
awk
'{ print $2 }'
|
grep
-q
'
/
smf.git
$
'
if
[
$?
-eq
0
]
;
then
name
=
$(
basename
$(
dirname
$wwwdir
))
smfs
=
"
${
smfs
}${
name
}
"
...
...
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