-
Notifications
You must be signed in to change notification settings - Fork 3
Setup
Rudolf Kvašňovský edited this page Oct 19, 2018
·
1 revision
-
tmpfolder exists on the path specified inapplication.ymland that the application can read/write from/to it. Typically the path inapplication.ymlis relative to workspace of the system service and the user running the service is owner of thetmpfolder.
If the user does not exist yet:
sudo -u postgres psql postgres
CREATE USER arcstorage;
ALTER USER arcstorage WITH PASSWORD 'vuji61oilo';
\q
sudo systemctl stop archival-storage
sudo -u postgres psql postgres
drop database arcstorage;
create database arcstorage owner arcstorage;
\q
sudo cp /home/user/archival-storage-1.0-SNAPSHOT.jar /opt/archival-storage/archival-storage.jar
sudo systemctl start archival-storage
sudo rm -rf /opt/archival-storage/data/arclib/*
sudo cp -r /opt/archival-storage/initdata/* /opt/archival-storage/data/arclib
sudo chmod -R 777 /opt/archival-storage/data/arclib