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
e72ee994
Commit
e72ee994
authored
5 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Location of cryptpad config file
parent
6e901ff5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#72633
failed
5 years ago
Stage: prepare
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-cryptpad
+13
-10
13 additions, 10 deletions
src/freedombone-app-cryptpad
with
13 additions
and
10 deletions
src/freedombone-app-cryptpad
+
13
−
10
View file @
e72ee994
...
...
@@ -120,6 +120,9 @@ function upgrade_cryptpad {
set_repo_commit
$CRYPTPAD_DIR
"cryptpad commit"
"
$CRYPTPAD_COMMIT
"
$CRYPTPAD_REPO
cd
$CRYPTPAD_DIR
||
exit
254
if
[
-f
$CRYPTPAD_DIR
/config.js
]
;
then
mv
$CRYPTPAD_DIR
/config.js
$CRYPTPAD_DIR
/config/config.js
fi
cryptpad_create_config
npm upgrade
npm
install
...
...
@@ -289,12 +292,12 @@ function cryptpad_create_config {
echo
' ],'
;
echo
''
;
echo
' removeDonateButton: true,'
;
echo
' allowSubscriptions: false,'
;
}
>
"
$cryptpad_prefix$CRYPTPAD_DIR
/config.js"
echo
' allowSubscriptions: false,'
;
}
>
"
$cryptpad_prefix$CRYPTPAD_DIR
/config
/config
.js"
if
[[
"
$cryptpad_install_type
"
==
"mesh"
]]
;
then
echo
" myDomain: 'http://P
${
PEER_ID
}
.local',"
>>
"
$cryptpad_prefix$CRYPTPAD_DIR
/config.js"
echo
" myDomain: 'http://P
${
PEER_ID
}
.local',"
>>
"
$cryptpad_prefix$CRYPTPAD_DIR
/config
/config
.js"
else
CRYPTPAD_ONION_HOSTNAME
=
$(
cat
/var/lib/tor/hidden_service_cryptpad/hostname
)
echo
" myDomain: 'http://
${
CRYPTPAD_ONION_HOSTNAME
}
',"
>>
"
$cryptpad_prefix$CRYPTPAD_DIR
/config.js"
echo
" myDomain: 'http://
${
CRYPTPAD_ONION_HOSTNAME
}
',"
>>
"
$cryptpad_prefix$CRYPTPAD_DIR
/config
/config
.js"
fi
{
echo
' defaultStorageLimit: 50 * 1024 * 1024,'
;
echo
''
;
...
...
@@ -318,12 +321,12 @@ function cryptpad_create_config {
echo
' maxUploadSize: 20 * 1024 * 1024,'
;
echo
' //logFeedback: true,'
;
echo
' //logRPC: true,'
;
echo
'};'
;
}
>>
"
$cryptpad_prefix$CRYPTPAD_DIR
/config.js"
echo
'};'
;
}
>>
"
$cryptpad_prefix$CRYPTPAD_DIR
/config
/config
.js"
if
[[
"
$cryptpad_install_type
"
!=
"mesh"
]]
;
then
chown
cryptpad:cryptpad
"
$cryptpad_prefix$CRYPTPAD_DIR
/config.js"
chown
cryptpad:cryptpad
"
$cryptpad_prefix$CRYPTPAD_DIR
/config
/config
.js"
else
chroot
"
$rootdir
"
chown
cryptpad:cryptpad
$CRYPTPAD_DIR
/config.js
chroot
"
$rootdir
"
chown
cryptpad:cryptpad
$CRYPTPAD_DIR
/config
/config
.js
fi
}
...
...
@@ -455,12 +458,12 @@ npm install --arch=$NPM_ARCH --build-from-source
npm install --arch=
$NPM_ARCH
bower@1.8.4
chown -R cryptpad:cryptpad
$CRYPTPAD_DIR
su -c './node_modules/bower/bin/bower install --config.interactive=false' - cryptpad
cp config.example.js config.js
cp
config/
config.example.js
config/
config.js
EOF
chmod
+x
"
$rootdir
/usr/bin/install_cryptpad"
chroot
"
$rootdir
"
/usr/bin/install_cryptpad
if
[
!
-f
"
$rootdir$CRYPTPAD_DIR
/config.js"
]
;
then
if
[
!
-f
"
$rootdir$CRYPTPAD_DIR
/config
/config
.js"
]
;
then
echo
$'Cryptpad config file not found'
exit
62
fi
...
...
@@ -661,8 +664,8 @@ function install_cryptpad {
chown
-R
cryptpad:cryptpad
$CRYPTPAD_DIR
su
-c
'./node_modules/bower/bin/bower install --config.interactive=false'
- cryptpad
su
-c
'./node_modules/bower/bin/bower update --config.interactive=false'
- cryptpad
cp
config.example.js config.js
if
[
!
-f
config.js
]
;
then
cp
config/
config.example.js
config/
config.js
if
[
!
-f
config/
config.js
]
;
then
echo
$'Cryptpad config file not found'
exit
62
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