mirror of
https://github.com/YunoHost-Apps/shellinabox_ynh.git
synced 2024-09-03 20:26:12 +02:00
16 lines
455 B
Text
16 lines
455 B
Text
|
#!/bin/bash
|
||
|
|
||
|
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
||
|
set -e
|
||
|
|
||
|
# Retrieve arguments
|
||
|
app="shellinabox"
|
||
|
domain=$(sudo yunohost app setting $app domain)
|
||
|
|
||
|
# Backup directory location for the app from where the script is executed and
|
||
|
# which will be compressed afterward
|
||
|
backup_dir=$YNH_APP_BACKUP_DIR
|
||
|
|
||
|
# Copy the conf files
|
||
|
sudo mkdir -p ./conf
|
||
|
sudo cp -a "/etc/nginx/conf.d/${domain}.d/${app}.conf" ./conf/nginx.conf
|