Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
998a98ac
Commit
998a98ac
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Change inadyn username and password
parent
782d5567
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-ddns
+33
-0
33 additions, 0 deletions
src/freedombone-ddns
src/freedombone-utils-dns
+3
-0
3 additions, 0 deletions
src/freedombone-utils-dns
with
36 additions
and
0 deletions
src/freedombone-ddns
+
33
−
0
View file @
998a98ac
...
...
@@ -33,6 +33,38 @@ export TEXTDOMAINDIR="/usr/share/locale"
source
"/usr/share/
${
PROJECT_NAME
}
/utils/
${
PROJECT_NAME
}
-utils-config"
function
update_inadyn_config
{
if
[
!
-f
/etc/inadyn.conf
]
;
then
return
fi
if
[[
"
$DDNS_PROVIDER
"
==
*
'freedns'
*
]]
;
then
return
fi
if
!
grep
-q
"
$DDNS_PROVIDER
"
/etc/inadyn.conf
;
then
{
echo
''
;
echo
"system
$DDNS_PROVIDER
"
;
echo
' ssl'
;
echo
" checkip-url
$GET_IP_ADDRESS_URL
/"
;
}
>>
/etc/inadyn.conf
if
[
"
$DDNS_USERNAME
"
]
;
then
echo
" username
$DDNS_USERNAME
"
>>
/etc/inadyn.conf
fi
if
[
"
$DDNS_PASSWORD
"
]
;
then
echo
" password
$DDNS_PASSWORD
"
>>
/etc/inadyn.conf
fi
else
if
[
"
$DDNS_USERNAME
"
]
;
then
sed
-i
"s| username .*| username
$DDNS_USERNAME
|g"
/etc/inadyn.conf
fi
if
[
"
$DDNS_PASSWORD
"
]
;
then
sed
-i
"s| password .*| password
$DDNS_PASSWORD
|g"
/etc/inadyn.conf
fi
fi
systemctl
enable
inadyn
systemctl restart inadyn
}
function
dynamic_dns_setup
{
DDNS_PROVIDER
=
'none'
...
...
@@ -173,6 +205,7 @@ function dynamic_dns_setup {
fi
done
save_configuration_values
update_inadyn_config
fi
}
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-dns
+
3
−
0
View file @
998a98ac
...
...
@@ -137,6 +137,9 @@ function add_ddns_domain {
if
[[
$ONION_ONLY
!=
"no"
]]
;
then
return
fi
if
[
!
"
$DDNS_PROVIDER
"
]
;
then
return
fi
if
[[
"
$DDNS_PROVIDER
"
==
'none'
]]
;
then
return
fi
...
...
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