Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diaspora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Milan
diaspora
Commits
8dbd61f1
Commit
8dbd61f1
authored
14 years ago
by
Alec Leamas
Browse files
Options
Downloads
Patches
Plain Diff
Point fix: error in diaspora-setup (x2) blocks build.
parent
35a59d39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/fedora/diaspora-setup
+4
-3
4 additions, 3 deletions
pkg/fedora/diaspora-setup
pkg/ubuntu/diaspora-setup
+4
-3
4 additions, 3 deletions
pkg/ubuntu/diaspora-setup
with
8 additions
and
6 deletions
pkg/fedora/diaspora-setup
+
4
−
3
View file @
8dbd61f1
...
...
@@ -43,13 +43,14 @@ fi
chmod
777 /var/lib/diaspora/uploads
chown
-R
diaspora /var/log/diaspora
hostname
=
$(
awk
'/pod_url:/ { print $2; exit }'
<config/app_config.yml
)
if
[
-n
"
$arg_hostname
"
]
;
then
sed
-i
"/pod_url:/s
/
$hostname
/
$arg_hostname
/
g"
config/app_config.yml
&&
sed
-i
"/pod_url:/s
|
$hostname
|
$arg_hostname
|
g"
config/app_config.yml
&&
echo
"config/app_config.yml updated."
exit
0
fi
hostname
=
$(
awk
'/pod_url:/ { print $2; exit }'
<config/app_config.yml
)
while
:
;
do
echo
"Current hostname is
\"
$hostname
\"
"
echo
-n
"Enter new hostname [
$hostname
] :"
...
...
@@ -57,7 +58,7 @@ while : ; do
echo
-n
"Use hostname
\"
$new_hostname
\"
as pod_url (Yes/No) [Yes]? :"
read
yesno garbage
test
"
${
yesno
:0:1
}
"
=
'y'
-o
"
${
yesno
:0:1
}
"
=
'Y'
-o
-z
"
$yesno
"
&&
{
sed
-i
"/pod_url:/s
/
$hostname
/
$new_hostname
/
g"
config/app_config.yml
&&
sed
-i
"/pod_url:/s
|
$hostname
|
$new_hostname
|
g"
config/app_config.yml
&&
echo
"config/app_config.yml updated."
break
}
...
...
This diff is collapsed.
Click to expand it.
pkg/ubuntu/diaspora-setup
+
4
−
3
View file @
8dbd61f1
...
...
@@ -46,13 +46,14 @@ fi
chmod
777 /var/lib/diaspora/uploads
chown
-R
diaspora /var/log/diaspora
hostname
=
$(
awk
'/pod_url:/ { print $2; exit }'
<config/app_config.yml
)
if
[
-n
"
$arg_hostname
"
]
;
then
sed
-i
"/pod_url:/s
/
$hostname
/
$arg_hostname
/
g"
config/app_config.yml
&&
sed
-i
"/pod_url:/s
|
$hostname
|
$arg_hostname
|
g"
config/app_config.yml
&&
echo
"config/app_config.yml updated."
exit
0
fi
hostname
=
$(
awk
'/pod_url:/ { print $2; exit }'
<config/app_config.yml
)
while
:
;
do
echo
"Current hostname is
\"
$hostname
\"
"
echo
-n
"Enter new hostname [
$hostname
] :"
...
...
@@ -60,7 +61,7 @@ while : ; do
echo
-n
"Use hostname
\"
$new_hostname
\"
as pod_url (Yes/No) [Yes]? :"
read
yesno garbage
test
"
${
yesno
:0:1
}
"
=
'y'
-o
"
${
yesno
:0:1
}
"
=
'Y'
-o
-z
"
$yesno
"
&&
{
sed
-i
"/pod_url:/s
/
$hostname
/
$new_hostname
/
g"
config/app_config.yml
&&
sed
-i
"/pod_url:/s
|
$hostname
|
$new_hostname
|
g"
config/app_config.yml
&&
echo
"config/app_config.yml updated."
break
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment