#!/bin/bash : ' @vendor Chorke Academia, Inc. @web https://cdn.chorke.org/docs/academia @version 1.0.00 @since 1.0.00 ' :<>/dev/null <> ${SPARK_USER_HOME}/.ssh/authorized_keys EOF } function install(){ sudo chown -R spark:spark ${SPARK_HOME_DIR} sudo tee -a /etc/systemd/system/spark.service >/dev/null < ${SPARK_HOME_DIR}/etc/spark.pid" ExecStart=${SPARK_HOME_DIR}/sbin/start-all.sh ExecStop=${SPARK_HOME_DIR}/sbin/stop-all.sh [Install] WantedBy=multi-user.target EOF } function launch(){ sudo systemctl daemon-reload sudo systemctl enable spark.service sudo systemctl start spark.service sudo systemctl status spark.service } function init(){ validate download approve setting install launch } init