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
4286f536
Commit
4286f536
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
install_dir
parent
650fb2e2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-utils-gnusocialtools
+14
-14
14 additions, 14 deletions
src/freedombone-utils-gnusocialtools
with
14 additions
and
14 deletions
src/freedombone-utils-gnusocialtools
+
14
−
14
View file @
4286f536
...
...
@@ -161,33 +161,33 @@ function install_pleroma {
background_url
=
"
$3
"
title
=
"
$4
"
if
[
!
-d
~/build
/pleroma
]
;
then
if
[
!
-d
$INSTALL_DIR
/pleroma
]
;
then
function_check git_clone
git_clone
$PLEROMA_REPO
~/build
/pleroma
if
[
!
-d
~/build
/pleroma
]
;
then
git_clone
$PLEROMA_REPO
$INSTALL_DIR
/pleroma
if
[
!
-d
$INSTALL_DIR
/pleroma
]
;
then
echo
$'Unable to clone pleroma repo'
exit
682252
fi
fi
cd
~/build
/pleroma
cd
$INSTALL_DIR
/pleroma
git checkout
$PLEROMA_COMMIT
-b
$PLEROMA_COMMIT
set_completion_param
"
${
app_name
}
pleroma commit"
"
$PLEROMA_COMMIT
"
npm
install
-g
yarn
yarn
npm run build
if
[
!
-d
~/build
/pleroma/dist
]
;
then
if
[
!
-d
$INSTALL_DIR
/pleroma/dist
]
;
then
echo
'Unable to build pleroma'
exit
7629352
fi
if
[
!
-f
~/build
/pleroma/dist/index.html
]
;
then
if
[
!
-f
$INSTALL_DIR
/pleroma/dist/index.html
]
;
then
echo
$'Unable to build pleroma index.html'
exit
5282682
fi
mv
~/build
/pleroma/dist/index.html
~/build
/pleroma/dist/pleroma.html
cp
-r
~/build
/pleroma/dist/
*
/var/www/
${
pleroma_domain
}
/htdocs/
mv
$INSTALL_DIR
/pleroma/dist/index.html
$INSTALL_DIR
/pleroma/dist/pleroma.html
cp
-r
$INSTALL_DIR
/pleroma/dist/
*
/var/www/
${
pleroma_domain
}
/htdocs/
pleroma_set_background_image_from_url
"
$pleroma_domain
"
"
$background_url
"
"
$title
"
...
...
@@ -201,16 +201,16 @@ function upgrade_pleroma {
background_url
=
"
$3
"
title
=
"
$4
"
if
[
-d
~/build
/pleroma
]
;
then
set_repo_commit
~/build
/pleroma
"
${
app_name
}
pleroma commit"
"
$PLEROMA_COMMIT
"
$PLEROMA_REPO
cd
~/build
/pleroma
if
[
-d
$INSTALL_DIR
/pleroma
]
;
then
set_repo_commit
$INSTALL_DIR
/pleroma
"
${
app_name
}
pleroma commit"
"
$PLEROMA_COMMIT
"
$PLEROMA_REPO
cd
$INSTALL_DIR
/pleroma
npm run build
if
[
!
-d
~/build
/pleroma/dist
]
;
then
if
[
!
-d
$INSTALL_DIR
/pleroma/dist
]
;
then
echo
'Unable to build pleroma'
exit
268362
fi
mv
~/build
/pleroma/dist/index.html
~/build
/pleroma/dist/pleroma.html
cp
-r
~/build
/pleroma/dist/
*
/var/www/
${
domain_name
}
/htdocs/
mv
$INSTALL_DIR
/pleroma/dist/index.html
$INSTALL_DIR
/pleroma/dist/pleroma.html
cp
-r
$INSTALL_DIR
/pleroma/dist/
*
/var/www/
${
domain_name
}
/htdocs/
pleroma_set_background_image_from_url
"
$domain_name
"
"
$background_url
"
"
$title
"
else
install_pleroma
"
${
app_name
}
"
"
${
domain_name
}
"
"
${
background_url
}
"
"
${
title
}
"
...
...
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