install_service.sh 620 B

1234567891011121314151617
  1. source ./bin/utils/functions.sh
  2. source .env
  3. echo_warning "Recreating sharix.service"
  4. \cp conf/sharix.service.example conf/sharix.service
  5. sed -i "s|WORKING_DIRECTORY|$(pwd)|g" conf/sharix.service
  6. echo_success "Recreated sharix.service"
  7. echo_warning "Copying sharix_open.service to /etc/systemd/system/ folder"
  8. \cp conf/sharix.service /etc/systemd/system/sharix_${METASERVICE_NAME}.service
  9. echo_success "Copied sharix_open.service to /etc/systemd/system/ folder"
  10. echo_warning "Reloading systemd daemon"
  11. systemctl daemon-reload
  12. echo_success "Reloaded systemd daemon"
  13. systemctl enable sharix_${METASERVICE_NAME}.service