More scripts

This commit is contained in:
2021-10-19 18:38:11 -04:00
parent 64f6c11503
commit ce047ec339
3 changed files with 29 additions and 2 deletions

View File

@@ -9,10 +9,10 @@ systemdir="/etc/update-mot.d"
[[ ! -d "$systemdir" ]] && mkdir -p "$systemdir" [[ ! -d "$systemdir" ]] && mkdir -p "$systemdir"
for script in ./motd/"${scripts[@]}"; do for script in motd/"${scripts[@]}"; do
cp "$script" "$systemdir" cp "$script" "$systemdir"
done done
rm -rf motd #rm -rf motd
exit $? exit $?

13
script-install-scripts Normal file
View File

@@ -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

14
script-user-reset-x2go Normal file
View File

@@ -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.