123456789101112131415161718192021222324252627 |
- source ./bin/utils/functions.sh
- source .env
- echo_warning "Recreating sharix.service"
- \cp conf/sharix.service.example conf/sharix.service
- sed -i "s|WORKING_DIRECTORY|$(pwd)|g" conf/sharix.service
- echo_success "Recreated sharix.service"
- echo_warning "Copying sharix_open.service to /etc/systemd/system/ folder"
- \cp conf/sharix.service /etc/systemd/system/sharix_${METASERVICE_NAME}.service
- echo_success "Copied sharix_open.service to /etc/systemd/system/ folder"
- echo_warning "Reloading systemd daemon"
- systemctl daemon-reload
- echo_success "Reloaded systemd daemon"
- # Checking for webservice_running/handlers/.env
- if [ -f webservice_running/handlers/.env ]; then
- echo "env file for handlers already exists. "
- else
- echo_warning "Creating env file for handlers."
- cp webservice_running/handlers/.env.example webservice_running/handlers/.env
- echo_success "Created env file for handlers."
- fi
- echo_warning "Installation handlers"
- webservice_running/handlers/conf/bin/install.sh
|