Skip to content

Commit

Permalink
Support Configuration of Executable Privilege.
Browse files Browse the repository at this point in the history
New MODS parameter to not prompt to open Explorer after a Build
  • Loading branch information
vletroye committed Jan 17, 2021
1 parent d57a322 commit fe799b4
Show file tree
Hide file tree
Showing 10 changed files with 847 additions and 546 deletions.
33 changes: 18 additions & 15 deletions Mods/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
<userSettings>
<BeatificaBytes.Synology.Mods.Properties.Settings>
<setting name="Packages" serializeAs="String">
<value/>
<value />
</setting>
<setting name="PackageRoot" serializeAs="String">
<value/>
<value />
</setting>
<setting name="SourceImages" serializeAs="String">
<value/>
<value />
</setting>
<setting name="UpgradeRequired" serializeAs="String">
<value>True</value>
</setting>
<setting name="PackageRepo" serializeAs="String">
<value/>
<value />
</setting>
<setting name="AdvancedEditor" serializeAs="String">
<value>False</value>
Expand All @@ -48,11 +48,21 @@
<value>False</value>
</setting>
<setting name="LastPackage" serializeAs="String">
<value/>
<value />
</setting>
<setting name="License" serializeAs="String">
<value>This SOFTWARE PRODUCT is provided by THE PROVIDER "as is" and "with all faults." THE PROVIDER makes no representations or warranties of any kind concerning the safety, suitability, lack of viruses, inaccuracies, typographical errors, or other harmful components of this SOFTWARE PRODUCT. There are inherent dangers in the use of any software, and you are solely responsible for determining whether this SOFTWARE PRODUCT is compatible with your equipment and other software installed on your equipment. You are also solely responsible for the protection of your equipment and backup of your data, and THE PROVIDER will not be liable for any damages you may suffer in connection with using, modifying, or distributing this SOFTWARE PRODUCT.</value>
</setting>
<setting name="router_inst" serializeAs="String">
<value># set the name of the package in the nginx config
sed -i -e "s|@MODS_CGI@|$SYNOPKG_PKGNAME|g" "$SYNOPKG_PKGDEST/ui/dsm.cgi.conf"

# link the nginx config to redirect pages accessed on admin port
rm -f /usr/syno/share/nginx/conf.d/dsm.$SYNOPKG_PKGNAME.conf
ln -s $SYNOPKG_PKGDEST/ui/dsm.cgi.conf /usr/syno/share/nginx/conf.d/dsm.$SYNOPKG_PKGNAME.conf
#sudo synoservicecfg --reload nginx [Add startstop_restart_services="nginx" in INFO file instead of this line]
</value>
</setting>
<setting name="Ps_Exec" serializeAs="String">
<value>
&lt;script type="text/javascript"&gt;
Expand Down Expand Up @@ -177,16 +187,6 @@ else
fi
/usr/local/bin/php70-cgi -c /etc/php/php.ini -d open_basedir=none $SCRIPT_FILENAME $SCRIPT_PARAMETERS 2&gt;&amp;1
fi</value>
</setting>
<setting name="router_inst" serializeAs="String">
<value># set the name of the package in the nginx config
sed -i -e "s|@MODS_CGI@|$SYNOPKG_PKGNAME|g" "$SYNOPKG_PKGDEST/ui/dsm.cgi.conf"

# link the nginx config to redirect pages accessed on admin port
rm -f /usr/syno/share/nginx/conf.d/dsm.$SYNOPKG_PKGNAME.conf
ln -s $SYNOPKG_PKGDEST/ui/dsm.cgi.conf /usr/syno/share/nginx/conf.d/dsm.$SYNOPKG_PKGNAME.conf
#sudo synoservicecfg --reload nginx [Add startstop_restart_services="nginx" in INFO file instead of this line]
</value>
</setting>
<setting name="dsm_releases" serializeAs="String">
<value>
Expand Down Expand Up @@ -298,6 +298,9 @@ ln -s $SYNOPKG_PKGDEST/ui/dsm.cgi.conf /usr/syno/share/nginx/conf.d/dsm.$SYNOPKG
5.0-4528
</value>
</setting>
<setting name="PromptExplorer" serializeAs="String">
<value>True</value>
</setting>
</BeatificaBytes.Synology.Mods.Properties.Settings>
</userSettings>
</configuration>
71 changes: 36 additions & 35 deletions Mods/Forms/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fe799b4

Please sign in to comment.