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
8c46bc03
Commit
8c46bc03
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
koel version
parent
a03b2c5b
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-app-koel
+3
-2
3 additions, 2 deletions
src/freedombone-app-koel
src/freedombone-utils-git
+15
-5
15 additions, 5 deletions
src/freedombone-utils-git
with
18 additions
and
7 deletions
src/freedombone-app-koel
+
3
−
2
View file @
8c46bc03
...
...
@@ -41,7 +41,7 @@ KOEL_CODE=
KOEL_ONION_PORT
=
8118
KOEL_PORT
=
9002
KOEL_REPO
=
"https://github.com/phanan/koel"
KOEL_COMMIT
=
'
6cd089ca2fb4e0880e39dcad1d8d911edf86f494
'
KOEL_COMMIT
=
'
v3.7.0
'
KOEL_ADMIN_PASSWORD
=
KOEL_SHORT_DESCRIPTION
=
$'Music player'
...
...
@@ -522,7 +522,8 @@ function install_koel_main {
fi
cd
"/var/www/
$KOEL_DOMAIN_NAME
/htdocs"
||
exit
83
git checkout
"
$KOEL_COMMIT
"
-b
"
$KOEL_COMMIT
"
#git checkout "$KOEL_COMMIT" -b "$KOEL_COMMIT"
git checkout
"
$KOEL_COMMIT
"
set_completion_param
"koel commit"
"
$KOEL_COMMIT
"
chown
-R
www-data:www-data
"/var/www/
$KOEL_DOMAIN_NAME
/htdocs"
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-git
+
15
−
5
View file @
8c46bc03
...
...
@@ -49,12 +49,22 @@ function git_pull {
# delete any existing branch
git branch
-D
"
$2
"
# check out the new branch
if
!
git checkout
"
$2
"
-b
"
$2
"
;
then
if
[
-f
/tmp/.upgrading
]
;
then
rm
/tmp/.upgrading
if
[[
"
$2
"
==
'v'
*
||
"
$2
"
==
'V'
*
]]
;
then
if
!
git checkout
"
$2
"
;
then
if
[
-f
/tmp/.upgrading
]
;
then
rm
/tmp/.upgrading
fi
echo
$"Unable to checkout
$1
$2
"
exit
72
fi
else
if
!
git checkout
"
$2
"
-b
"
$2
"
;
then
if
[
-f
/tmp/.upgrading
]
;
then
rm
/tmp/.upgrading
fi
echo
$"Unable to checkout
$1
$2
"
exit
72
fi
echo
$"Unable to checkout
$1
$2
"
exit
72
fi
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