This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/share/webapps/pterodactyl/ | |
echo "Changed directory to $(pwd)" | |
php artisan down | |
echo "Shut down artisan." | |
echo "Sleeping for 3 seconds..." | |
sleep 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:DependsOn("com.github.hypfvieh:dbus-java-core:4.0.0") | |
@file:DependsOn("com.github.hypfvieh:dbus-java-transport-jnr-unixsocket:4.0.0") | |
@file:DependsOn("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.0") | |
import org.freedesktop.dbus.annotations.DBusInterfaceName | |
import org.freedesktop.dbus.connections.impl.DBusConnection | |
import org.freedesktop.dbus.interfaces.DBusInterface | |
import org.freedesktop.dbus.types.Variant | |
val connection = DBusConnection.getConnection(DBusConnection.DBusBusType.SESSION) |