refactory debian_app.sh