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
6f1b519d
Commit
6f1b519d
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Put plume on hold
parent
61dbfaef
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-app-plume
+19
-7
19 additions, 7 deletions
src/freedombone-app-plume
with
19 additions
and
7 deletions
src/freedombone-app-plume
+
19
−
7
View file @
6f1b519d
...
...
@@ -9,6 +9,10 @@
#
# Plume app
#
# The problem here is that cargo tries to run things from
# within the /tmp directory and that violates the security model
# (nothing should be executable from /tmp)
#
# License
# =======
#
...
...
@@ -27,7 +31,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
VARIANTS
=
'
full full-vim
'
VARIANTS
=
''
IN_DEFAULT_INSTALL
=
0
INSTALLED_ON_DEFAULT_DOMAIN
=
0
...
...
@@ -50,10 +54,11 @@ PLUME_DESCRIPTION='Federated blogging'
PLUME_MOBILE_APP_URL
=
plume_variables
=(
ONION_ONLY
PLUME_DOMAIN_NAME
PLUME_CODE
DDNS_PROVIDER
MY_USERNAME
)
PLUME_DOMAIN_NAME
PLUME_CODE
DDNS_PROVIDER
MY_EMAIL_ADDRESS
MY_USERNAME
)
function
logging_on_plume
{
echo
-n
''
...
...
@@ -161,6 +166,11 @@ function upgrade_plume {
# update to the next commit
set_repo_commit
"/etc/plume"
"plume commit"
"
$PLUME_COMMIT
"
"
$PLUME_REPO
"
cd
/etc/plume
||
return
cargo
install
diesel_cli
--no-default-features
--features
postgres
--version
'=1.3.0'
diesel migration run
chown
-R
plume:plume
"/etc/plume"
systemctl restart plume
}
...
...
@@ -410,6 +420,10 @@ function install_plume {
echo
"ROCKET_SECRET_KEY=
$(
create_random_string 30
)$(
create_random_string 30
)$(
create_random_string 30
)
"
;
}
>
/etc/plume/.env
cd
/etc/plume
||
exit
43846834
cargo
install
diesel_cli
--no-default-features
--features
postgres
--version
'=1.3.0'
increment_app_install_progress
diesel migration run
increment_app_install_progress
cargo build
--release
increment_app_install_progress
cargo
install
--no-default-features
--features
postgres
...
...
@@ -421,8 +435,6 @@ function install_plume {
plm
users
new
--admin
-n
"
$MY_USERNAME
"
--email
"
$MY_EMAIL_ADDRESS
"
--password
"
$PLUME_ADMIN_PASSWORD
"
increment_app_install_progress
plm search init
-p
/etc/plume
cargo
install
diesel_cli
--no-default-features
--features
postgres
--version
'=1.3.0'
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