moved samba to sysconfig

This commit is contained in:
Snogard 2023-07-23 17:20:35 +02:00
parent 648fc6ebb6
commit c69cad148d
2 changed files with 21 additions and 0 deletions

21
src/commands/sysconfig.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
prefix=sysconfig
rootFolder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
scriptFolder=${rootFolder}/${prefix}
scriptName=$1
scriptPath=${scriptFolder}/${prefix}-${scriptName}.sh
if test -f "$scriptPath"; then
if [[ ! -x "$scriptPath" ]]; then
sudo chmod +x $scriptPath
fi
echo "Executing: $scriptPath $2 $3 $4 $5 $6 $7"
$scriptPath $2 $3 $4 $5 $6 $7
else
echo "Error file not found: ${scriptPath}"
fi