Move python_apps/icecast2 to installer/icecast/

This commit is contained in:
jo 2021-10-17 02:51:36 +02:00 committed by Kyle Robbertze
parent 8fe0156d4f
commit d97ecdfba7
2 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

View file

@ -0,0 +1,24 @@
import os
import shutil
import sys
if os.geteuid() != 0:
print("Please run this as root.")
sys.exit(1)
def get_current_script_dir():
current_script_dir = os.path.realpath(__file__)
index = current_script_dir.rindex("/")
return current_script_dir[0:index]
try:
current_script_dir = get_current_script_dir()
shutil.copy(
current_script_dir + "/../airtime-icecast-status.xsl", "/usr/share/icecast2/web"
)
except Exception as e:
print("exception: {}".format(e))
sys.exit(1)