Skip to content
Snippets Groups Projects
Commit 6f1b519d authored by Bob Mottram's avatar Bob Mottram
Browse files

Put plume on hold

parent 61dbfaef
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment