From ce047ec33904cb88b37956cb6be1f2607168232a Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Tue, 19 Oct 2021 18:38:11 -0400 Subject: [PATCH] More scripts --- script-install-motd | 4 ++-- script-install-scripts | 13 +++++++++++++ script-user-reset-x2go | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 script-install-scripts create mode 100644 script-user-reset-x2go diff --git a/script-install-motd b/script-install-motd index d336270c..29ebbc18 100755 --- a/script-install-motd +++ b/script-install-motd @@ -9,10 +9,10 @@ systemdir="/etc/update-mot.d" [[ ! -d "$systemdir" ]] && mkdir -p "$systemdir" -for script in ./motd/"${scripts[@]}"; do +for script in motd/"${scripts[@]}"; do cp "$script" "$systemdir" done -rm -rf motd +#rm -rf motd exit $? \ No newline at end of file diff --git a/script-install-scripts b/script-install-scripts new file mode 100644 index 00000000..6fc009b5 --- /dev/null +++ b/script-install-scripts @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# This script will add scripts-* to the PATH +# Copyright 2021 Bryan C. Roessler + +[[ -f functions ]] && . functions || exit 1 + +is_root + +for script in script-*; do + install "$script" /usr/local/bin/ + install -m 644 functions /usr/local/bin/ +done + diff --git a/script-user-reset-x2go b/script-user-reset-x2go new file mode 100644 index 00000000..752f45ba --- /dev/null +++ b/script-user-reset-x2go @@ -0,0 +1,14 @@ +// Copyright 2021 Bryan C. Roessler +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +