chore: remove custom icecast install files (#1779)
This commit is contained in:
parent
c904c46424
commit
d5ea71246f
|
@ -1,7 +0,0 @@
|
||||||
<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>
|
|
|
@ -1,24 +0,0 @@
|
||||||
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(f"exception: {e}")
|
|
||||||
sys.exit(1)
|
|
Loading…
Reference in New Issue