More scripts
This commit is contained in:
@@ -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 $?
|
||||
13
script-install-scripts
Normal file
13
script-install-scripts
Normal 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
14
script-user-reset-x2go
Normal 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.
|
||||
|
||||
Reference in New Issue
Block a user