Files
maple/etc/run_maple.sh
2025-09-02 17:46:48 +10:00

42 lines
693 B
Bash

#! /bin/bash
set -uxe
SLDL_CONF_DIR="/root/.config/sldl/"
SLDL_CONF="$SLDL_CONF_DIR/sldl.conf"
directories() {
mkdir -p $SLDL_CONF_DIR
mkdir -p /data/_metadata
}
configure() {
cd /app
envsubst < /app/etc/sldl.tpl.conf > $SLDL_CONF
echo "--------------------------------------------------------------"
echo "configured sldl"
cat $SLDL_CONF
echo "--------------------------------------------------------------"
}
s5cmd_completion() {
s5cmd --install-completion >> ~/.bashrc
}
start() {
echo "waiting for input..."
while [[ true ]]; do
sleep 10000000
done
}
main() {
directories
configure
s5cmd_completion
start
}
main