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
5b668dd6
Commit
5b668dd6
authored
5 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Install bower as root
parent
a65e065c
Branches
stretch
No related tags found
No related merge requests found
Pipeline
#73572
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
+8
-7
8 additions, 7 deletions
src/freedombone-app-cryptpad
with
8 additions
and
7 deletions
src/freedombone-app-cryptpad
+
8
−
7
View file @
5b668dd6
...
@@ -127,7 +127,9 @@ function upgrade_cryptpad {
...
@@ -127,7 +127,9 @@ function upgrade_cryptpad {
cryptpad_create_config
cryptpad_create_config
npm upgrade
npm upgrade
npm
install
npm
install
su
-c
'npm install bower@1.8.4'
- cryptpad
if
[
!
-d
"
$CRYPTPAD_DIR
/node_modules/bower/bin/bower"
]
;
then
npm
install
bower@1.8.8
fi
rm
-rf
$CRYPTPAD_DIR
/.cache/bower
rm
-rf
$CRYPTPAD_DIR
/.cache/bower
su
-c
'./node_modules/bower/bin/bower install --config.interactive=false'
- cryptpad
su
-c
'./node_modules/bower/bin/bower install --config.interactive=false'
- cryptpad
su
-c
'./node_modules/bower/bin/bower update --config.interactive=false'
- cryptpad
su
-c
'./node_modules/bower/bin/bower update --config.interactive=false'
- cryptpad
...
@@ -659,13 +661,7 @@ function install_cryptpad {
...
@@ -659,13 +661,7 @@ function install_cryptpad {
increment_app_install_progress
increment_app_install_progress
su
-c
'npm install bower@1.8.4'
- cryptpad
increment_app_install_progress
chown
-R
cryptpad:cryptpad
$CRYPTPAD_DIR
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/config.example.js config/config.js
cp
config/config.example.js config/config.js
if
[
!
-f
config/config.js
]
;
then
if
[
!
-f
config/config.js
]
;
then
echo
$'Cryptpad config file not found'
echo
$'Cryptpad config file not found'
...
@@ -710,7 +706,12 @@ function install_cryptpad {
...
@@ -710,7 +706,12 @@ function install_cryptpad {
# install again
# install again
cd
$CRYPTPAD_DIR
||
exit
73
cd
$CRYPTPAD_DIR
||
exit
73
npm
install
bower@1.8.8
increment_app_install_progress
chown
-R
cryptpad:cryptpad
$CRYPTPAD_DIR
/node_modules/bower
su
-c
'./node_modules/bower/bin/bower install --config.interactive=false'
- cryptpad
su
-c
'./node_modules/bower/bin/bower install --config.interactive=false'
- cryptpad
increment_app_install_progress
su
-c
'./node_modules/bower/bin/bower update --config.interactive=false'
- cryptpad
increment_app_install_progress
increment_app_install_progress
...
...
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