Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rcfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
nimrod
rcfiles
Commits
6fbc195e
Commit
6fbc195e
authored
3 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Improve rclone handling.
Automate the password handling once the password database is downloaded.
parent
0eb58386
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.bashrc
+4
-0
4 additions, 0 deletions
.bashrc
.config/rclone/rclone.conf
+1
-1
1 addition, 1 deletion
.config/rclone/rclone.conf
Documents/bin/download-password-db
+5
-1
5 additions, 1 deletion
Documents/bin/download-password-db
with
10 additions
and
2 deletions
.bashrc
+
4
−
0
View file @
6fbc195e
...
...
@@ -231,6 +231,10 @@ prune_ssh_sockets () {
-execdir
sh
-c
'lsof -t "$1" >/dev/null || rm "$1"'
_
{}
\;
}
rcnc
()
{
RCLONE_CONFIG_NEXTCLOUD_PASS
=
"
$(
rclone obscure
"
$(
ph show
--field
'Password'
'shore.co.il/LDAP'
)
"
)
"
rclone
"
$@
"
}
set_title
()
{
local
default_title
default_title
=
"
$(
basename
"
$PWD
"
)
"
...
...
This diff is collapsed.
Click to expand it.
.config/rclone/rclone.conf
+
1
−
1
View file @
6fbc195e
...
...
@@ -2,4 +2,4 @@
type
=
webdav
url
=
https
://
nextcloud
.
shore
.
co
.
il
/
remote
.
php
/
webdav
/
vendor
=
nextcloud
user
=
nimrod
This diff is collapsed.
Click to expand it.
Documents/bin/download-password-db
+
5
−
1
View file @
6fbc195e
...
...
@@ -2,7 +2,11 @@
# pylint: disable=invalid-name
"""
Runs rclone securely to download the Keepass password database from
Nextcloud.
"""
Nextcloud.
This is meant as a bootstrap step to get the Keepass password database
so that other steps that depend on the database can be used.
"""
import
getpass
import
os
...
...
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