HEX
Server: Apache
System: Linux SH-FR-PM-y8qo 6.6.80-paas #1 SMP PREEMPT_DYNAMIC Thu Sep 25 11:18:23 UTC 2025 x86_64
User: hosting-user (5000)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: //usr/local/bin/restart-shell
#!/usr/bin/env bash

source /lib/start-lib.sh

parse_json /srv/data/.paas

user=$1

while true; do
    # Ignore keyboard interuptions
    trap '' 1 2 3 18 20 24
    echo "Press [Enter] to start a shell"
    read IGNORED
    trap - 1 2 3 18 20 24
    do_as ${user} /bin/bash --rcfile /srv/admin/configs/bash/bash.bashrc -i
done