Files
seid/install.sh
2025-03-11 10:18:19 -04:00

58 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# install.sh
# SEID local and remote installation program.
# Copyright (c) 2024, 2025, Scott C. MacCallum (scm@sdf.org).
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
user="scm"
host="tty.sdf.org"
# Local installation.
echo "Local installation..."
echo "Making the seid directory in /usr/lib."
echo "Copying the seid library files to /usr/lib/seid"
copy -v ""
echo "Changing the permissions of /usr/lib/seid to ?"
echo "Copying the seid program to /usr/bin."
copy seid.sh
# Remote installation.
echo "Remote installation..."
echo "Copying the secure shell public key to host."
ssh-copy-id $host
echo "Making the seid-remote directory in the remote home directory."
ssh $user@$host mkdir $HOME/seid-remote
echo "Copying the menu.sh file in the remote seid-remote directory."
scp menu.sh $user@$host:$HOME/seid-remote
exit 0